From 2a8a0702516be30f90024bbe0d21aad456a50639 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:04:27 -0700 Subject: [PATCH] remove "which pfctl" We assume that if the jail has an ip4.addr value, then pfctl is obviously installed. It is also not invoked by start, so stop should not need it either. --- usr/local/share/bastille/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/stop.sh b/usr/local/share/bastille/stop.sh index ade6f9a6..d61d7ed6 100644 --- a/usr/local/share/bastille/stop.sh +++ b/usr/local/share/bastille/stop.sh @@ -55,7 +55,7 @@ for _jail in ${JAILS}; do _ip4="$( bastille config ${_jail} get ip4.addr )" # Check if pfctl is present - if [ which -s pfctl ] && [ "${_ip4}" != "not set" ]; then + if [ "${_ip4}" != "not set" ]; then if [ "$(bastille rdr ${_jail} list)" ]; then bastille rdr ${_jail} clear fi