Add quick check for pfctl command
This commit is contained in:
1 parent
80639062d7
commit
75ed5b3ce4
1 file changed
+5
-2
@@ -56,8 +56,11 @@ for _jail in ${JAILS}; do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(bastille rdr ${_jail} list)" ]; then
|
# Check if pfctl is present
|
||||||
bastille rdr ${_jail} clear
|
if test -f /sbin/pfctl; then
|
||||||
|
if [ "$(bastille rdr ${_jail} list)" ]; then
|
||||||
|
bastille rdr ${_jail} clear
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## remove rctl limits
|
## remove rctl limits
|
||||||
|
|||||||
Reference in new issue
Block a user