Skip to content

Commit cdba7c6

Browse files
author
foudil
committed
Typo
1 parent 537a7d1 commit cdba7c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

usr/local/share/bastille/start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ for _jail in ${JAILS}; do
8282
ips=$(bastille config "${_jail}" get ip4.addr)
8383
ips="${ips} $(bastille config "${_jail}" get ip6.addr)"
8484
for ip in ${ips}; do
85-
ip=$(printf "$ip" | sed -E 's,/[0-9]+,,')
85+
ip=${ip%%/*}
8686
if [ -n "${ip}" ]; then
8787
if ifconfig | grep -wF "${ip}" >/dev/null; then
8888
error_notify "Error: IP address (${ip}) already in use."

usr/local/share/bastille/stop.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ for _jail in ${JAILS}; do
7474
jail -f "${bastille_jailsdir}/${_jail}/jail.conf" -r "${_jail}"
7575

7676
## remove (captured above) ipX.addr from firewall table
77-
if [ -n "${bastille_network_loopback}" && ! -z "${ips}" ]; then
77+
if [ -n "${bastille_network_loopback}" ] && [ ! -z "${ips}" ]; then
7878
if grep -qw "interface.*=.*${bastille_network_loopback}" "${bastille_jailsdir}/${_jail}/jail.conf"; then
7979
for _ip in ${ips}; do
8080
pfctl -q -t "${bastille_network_pf_table}" -T delete "${_ip}"

0 commit comments

Comments
 (0)