Skip to content

Commit

Permalink
start/stop hotfix and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
cedwards committed Apr 15, 2020
1 parent 0378e3f commit ef320eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion usr/local/bin/bastille
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bastille_perms_check
. /usr/local/etc/bastille/bastille.conf

## version
BASTILLE_VERSION="0.6.20200412"
BASTILLE_VERSION="0.6.20200414"

usage() {
cat << EOF
Expand Down
2 changes: 1 addition & 1 deletion usr/local/share/bastille/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for _jail in ${JAILS}; do
fi

## add ip4.addr to firewall table:jails
if [ ! -z "${bastille_network_loopback}" ]; then
if grep "interface = ${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
pfctl -q -t jails -T add "$(jls -j "${_jail}" ip4.addr)"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion usr/local/share/bastille/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ for _jail in ${JAILS}; do
## test if running
if [ "$(jls name | awk "/^${_jail}$/")" ]; then
## remove ip4.addr from firewall table:jails
if [ -n "${bastille_network_loopback}" ]; then
if grep "interface = ${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
pfctl -q -t jails -T delete "$(jls -j "${_jail}" ip4.addr)"
fi

Expand Down

0 comments on commit ef320eb

Please sign in to comment.