mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-21 01:30:52 +01:00
template: FIx booboo
This commit is contained in:
@@ -236,18 +236,18 @@ for _jail in ${JAILS}; do
|
|||||||
_jail_ip6="$(bastille config ${_jail} get ip6.addr | sed 's/,/ /g')"
|
_jail_ip6="$(bastille config ${_jail} get ip6.addr | sed 's/,/ /g')"
|
||||||
fi
|
fi
|
||||||
if [ "${_jail_ip4}" = "not set" ] || [ "${_jail_ip4}" = "disabled" ]; then
|
if [ "${_jail_ip4}" = "not set" ] || [ "${_jail_ip4}" = "disabled" ]; then
|
||||||
error_notify "Jail IP4 not found: ${_jail}"
|
if [ "${_jail_ip6}" = "not set" ] || [ "${_jail_ip6}" = "disabled" ]; then
|
||||||
_jail_ip4='' # In case it was -. -- cwells
|
error_notify "Jail IP not found: ${_jail}"
|
||||||
fi
|
_jail_ip4='' # In case it was -. -- cwells
|
||||||
if [ "${_jail_ip6}" = "not set" ] || [ "${_jail_ip6}" = "disabled" ]; then
|
_jail_ip6='' # In case it was -. -- cwells
|
||||||
error_notify "Jail IP6 not found: ${_jail}"
|
else
|
||||||
_jail_ip6='' # In case it was -. -- cwells
|
if echo "${_jail_ip4}" | grep -q "|"; then
|
||||||
fi
|
_jail_ip4="$(echo ${_jail_ip4} 2>/dev/null | awk -F"|" '{print $2}' | sed -E 's#/[0-9]+$##g')"
|
||||||
if echo "${_jail_ip4}" | grep -q "|"; then
|
fi
|
||||||
_jail_ip4="$(echo ${_jail_ip4} 2>/dev/null | awk -F"|" '{print $2}' | sed -E 's#/[0-9]+$##g')"
|
if echo "${_jail_ip6}" | grep -q "|"; then
|
||||||
fi
|
_jail_ip6="$(echo ${_jail_ip6} 2>/dev/null | awk -F"|" '{print $2}' | sed -E 's#/[0-9]+$##g')"
|
||||||
if echo "${_jail_ip6}" | grep -q "|"; then
|
fi
|
||||||
_jail_ip6="$(echo ${_jail_ip6} 2>/dev/null | awk -F"|" '{print $2}' | sed -E 's#/[0-9]+$##g')"
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## TARGET
|
## TARGET
|
||||||
|
|||||||
Reference in New Issue
Block a user