mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-22 10:10:46 +01:00
fix shellcheck
This commit is contained in:
@@ -505,11 +505,12 @@ clone_jail() {
|
|||||||
# Validate proper IP settings
|
# Validate proper IP settings
|
||||||
if [ "$(bastille config ${TARGET} get vnet)" != "not set" ]; then
|
if [ "$(bastille config ${TARGET} get vnet)" != "not set" ]; then
|
||||||
# VNET
|
# VNET
|
||||||
if grep -Eoq "ifconfig_vnet0=" "${bastille_jailsdir}/root/etc/rc.conf"; then
|
if grep -Eoq "ifconfig_vnet0=" "${bastille_jailsdir}/${TARGET}/root/etc/rc.conf"; then
|
||||||
if [ -z "${IP4_ADDR}" ]; then
|
if [ -z "${IP4_ADDR}" ]; then
|
||||||
error_exit "[ERROR]: IPv4 not set. Retry with a proper IPv4 address."
|
error_exit "[ERROR]: IPv4 not set. Retry with a proper IPv4 address."
|
||||||
fi
|
fi
|
||||||
if grep -Eoq "ifconfig_vnet0_ipv6=" "${bastille_jailsdir}/root/etc/rc.conf"; then
|
fi
|
||||||
|
if grep -Eoq "ifconfig_vnet0_ipv6=" "${bastille_jailsdir}/${TARGET}/root/etc/rc.conf"; then
|
||||||
if [ -z "${IP6_ADDR}" ]; then
|
if [ -z "${IP6_ADDR}" ]; then
|
||||||
error_exit "[ERROR]: IPv6 not set. Retry with a proper IPv6 address."
|
error_exit "[ERROR]: IPv6 not set. Retry with a proper IPv6 address."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user