From 4aa9ca555fc4c2a306e3a9025f7339db67be79ee Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 18 Feb 2025 09:09:50 -0700 Subject: [PATCH] rdr: _jail > TARGET --- usr/local/share/bastille/rdr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/rdr.sh b/usr/local/share/bastille/rdr.sh index 2c6ec54f..b301e631 100644 --- a/usr/local/share/bastille/rdr.sh +++ b/usr/local/share/bastille/rdr.sh @@ -340,9 +340,9 @@ while [ "$#" -gt 0 ]; do # Temp block to remove old format after new format is loaded the first time while read rules; do if [ "$(echo ${rules} | wc -w)" -lt 6 ]; then - sed -i '' "/^${rules}$/d" "${bastille_jailsdir}/${_jail}/rdr.conf" + sed -i '' "/^${rules}$/d" "${bastille_jailsdir}/${TARGET}/rdr.conf" fi - done < "${bastille_jailsdir}/${_jail}/rdr.conf" + done < "${bastille_jailsdir}/${TARGET}/rdr.conf" shift "$#" else case "${4}" in