This commit is contained in:
tschettervictor
2024-12-13 07:43:03 -07:00
committed by GitHub
parent 0ce5c27d8e
commit 744dd10a1c

View File

@@ -300,14 +300,14 @@ while [ "$#" -gt 0 ]; do
echo "${JAIL_NAME} redirects:"
pfctl -a "rdr/${JAIL_NAME}" -Fn
if rm -f "${bastille_jailsdir}"/"${JAIL_NAME}"/rdr.conf; then
info "[${JAIL_NAME}]: rdr.conf removed."
info "[${JAIL_NAME}]: rdr.conf removed"
fi
done
else
check_jail_validity
pfctl -a "rdr/${JAIL_NAME}" -Fn
if rm -f "${bastille_jailsdir}"/"${JAIL_NAME}"/rdr.conf; then
info "[${JAIL_NAME}]: rdr.conf removed."
info "[${JAIL_NAME}]: rdr.conf removed"
fi
fi
shift