Add quick check for pfctl command
This commit is contained in:
@@ -56,9 +56,12 @@ for _jail in ${JAILS}; do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if pfctl is present
|
||||||
|
if test -f /sbin/pfctl; then
|
||||||
if [ "$(bastille rdr ${_jail} list)" ]; then
|
if [ "$(bastille rdr ${_jail} list)" ]; then
|
||||||
bastille rdr ${_jail} clear
|
bastille rdr ${_jail} clear
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
## remove rctl limits
|
## remove rctl limits
|
||||||
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then
|
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user