config: Keep depend as the value to remain consistent with jail(8)

This commit is contained in:
tschettervictor
2025-05-02 08:38:45 -06:00
committed by GitHub
parent 6ebdb4e9d7
commit 420d7bf638

View File

@@ -157,14 +157,14 @@ for _jail in ${JAILS}; do
# Depend property
elif [ "${PROPERTY}" = "depend" ] || [ "${PROPERTY}" = "depends" ]; then
PROPERTY="depends"
PROPERTY="depend"
BASTILLE_PROPERTY=1
FILE="${bastille_jailsdir}/${_jail}/settings.conf"
if [ "${ACTION}" = "set" ]; then
if [ -z "${VALUE}" ]; then
error_exit "[ERROR]: Adding a jail to the 'depends' property requires a TARGET."
error_exit "[ERROR]: Adding a jail to the 'depend' property requires a TARGET."
else
set_target "${VALUE}"
fi
@@ -176,7 +176,7 @@ for _jail in ${JAILS}; do
elif [ "${ACTION}" = "remove" ]; then
if [ -z "${VALUE}" ]; then
error_exit "[ERROR]: Removing a jail from the 'depends' property requires a TARGET."
error_exit "[ERROR]: Removing a jail from the 'depend' property requires a TARGET."
else
set_target "${VALUE}"
fi
@@ -297,4 +297,4 @@ if { [ "${ACTION}" = "set" ] || [ "${ACTION}" = "remove" ]; } && [ -z "${BASTILL
info "A restart is required for the changes to be applied. See 'bastille restart'."
fi
exit 0
exit 0