Add quick check for pfctl command

This commit is contained in:
Jose committed 2021-02-08 04:17:32 -04:00
1 parent 80639062d7
commit 75ed5b3ce4
1 file changed
+3
+3
View File
@@ -56,9 +56,12 @@ for _jail in ${JAILS}; do
fi
fi
# 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
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then