mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 00:30:05 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user