From 420d7bf638bfa4f20604b9982da86f2a9d4be790 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Fri, 2 May 2025 08:38:45 -0600 Subject: [PATCH] config: Keep `depend` as the value to remain consistent with jail(8) --- usr/local/share/bastille/config.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/config.sh b/usr/local/share/bastille/config.sh index a7b1389c..fd5a18ee 100644 --- a/usr/local/share/bastille/config.sh +++ b/usr/local/share/bastille/config.sh @@ -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 \ No newline at end of file +exit 0