From 8e12d1c714c4eb8539f44d41ffa656d1027dafcb Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 3 Jun 2025 10:56:11 -0600 Subject: [PATCH] Update limits.sh --- usr/local/share/bastille/limits.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/usr/local/share/bastille/limits.sh b/usr/local/share/bastille/limits.sh index ba92ad8e..ada5a937 100644 --- a/usr/local/share/bastille/limits.sh +++ b/usr/local/share/bastille/limits.sh @@ -180,15 +180,13 @@ for _jail in ${JAILS}; do if [ "${OPT_LOG}" -eq 1 ]; then echo "${_rctl_rule_log}" >> "${bastille_jailsdir}/${_jail}/rctl.conf" fi - if [ "${OPT_LOG}" -eq 1 ]; then - echo -e "[LOGGING]: ${OPTION} ${VALUE}" - else - echo -e "${OPTION} ${VALUE}" - fi + fi + if [ "${OPT_LOG}" -eq 1 ]; then + echo -e "[LOGGING]: ${OPTION} ${VALUE}" + rctl -a "${_rctl_rule} ${_rctl_rule_log" + else + echo -e "${OPTION} ${VALUE}" rctl -a "${_rctl_rule}" - if [ "${OPT_LOG}" -eq 1 ]; then - rctl -a "${_rctl_rule_log}" - fi fi fi ;;