mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-18 00:00:40 +01:00
Fix for pfctl on start/stop commands, clean up excess double quotes
This commit is contained in:
@@ -89,8 +89,10 @@ for _jail in ${JAILS}; do
|
||||
fi
|
||||
|
||||
## add ip4.addr to firewall table:jails
|
||||
if grep "interface = ${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
|
||||
pfctl -q -t jails -T add "$(jls -j "${_jail}" ip4.addr)"
|
||||
if [ -n "${bastille_network_loopback}" ]; then
|
||||
if grep -qw "interface.*=.*${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
|
||||
pfctl -q -t jails -T add "$(jls -j ${_jail} ip4.addr)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user