rdr: _jail > TARGET

This commit is contained in:
tschettervictor
2025-02-18 09:09:50 -07:00
committed by GitHub
parent 283299479a
commit 4aa9ca555f

View File

@@ -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