From bdae170529397e2fef55463f0dba317426aa0bfd Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Wed, 23 Nov 2022 22:41:45 -0500 Subject: [PATCH] Use "bastille config" to get ipv4.addr. Fixes issue with jails not being added to pf table. --- usr/local/share/bastille/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/start.sh b/usr/local/share/bastille/start.sh index a82fb611..e08af945 100644 --- a/usr/local/share/bastille/start.sh +++ b/usr/local/share/bastille/start.sh @@ -77,7 +77,7 @@ for _jail in ${JAILS}; do fi ## warn if matching configured (but not online) ip4.addr, ignore if there's no ip4.addr entry - ip=$(grep 'ip4.addr' "${bastille_jailsdir}/${_jail}/jail.conf" | awk '{print $3}' | sed 's/\;//g') + ip=$(bastille config "${_jail}" get ip4.addr) if [ -n "${ip}" ]; then if ifconfig | grep -w "${ip}" >/dev/null; then error_notify "Error: IP address (${ip}) already in use."