Add quick check for pfctl command
This commit is contained in:
@@ -55,9 +55,12 @@ for _jail in ${JAILS}; do
|
||||
pfctl -q -t jails -T delete "$(jls -j ${_jail} ip4.addr)"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$(bastille rdr ${_jail} list)" ]; then
|
||||
bastille rdr ${_jail} clear
|
||||
|
||||
# Check if pfctl is present
|
||||
if test -f /sbin/pfctl; then
|
||||
if [ "$(bastille rdr ${_jail} list)" ]; then
|
||||
bastille rdr ${_jail} clear
|
||||
fi
|
||||
fi
|
||||
|
||||
## remove rctl limits
|
||||
|
||||
Reference in New Issue
Block a user