mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-04 03:33:41 +01:00
config: Keep depend as the value to remain consistent with jail(8)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user