mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 18:50:46 +01:00
clone: some code cleanup
This commit is contained in:
@@ -113,11 +113,9 @@ validate_ip() {
|
|||||||
local _ip6="$(echo ${_ip} | grep -E '^(([a-fA-F0-9:]+$)|([a-fA-F0-9:]+\/[0-9]{1,3}$)|SLAAC)')"
|
local _ip6="$(echo ${_ip} | grep -E '^(([a-fA-F0-9:]+$)|([a-fA-F0-9:]+\/[0-9]{1,3}$)|SLAAC)')"
|
||||||
|
|
||||||
if [ -n "${_ip6}" ]; then
|
if [ -n "${_ip6}" ]; then
|
||||||
if [ "${_ip6}" = "SLAAC" ]; then
|
if [ "${_ip6}" = "SLAAC" ] && [ "$(bastille config ${TARGET} get vnet)" != "enabled" ]; then
|
||||||
if [ "$(bastille config ${TARGET} get vnet)" != "enabled" ]; then
|
|
||||||
error_exit "[ERROR]: Unsupported IP option for standard jail: (${_ip6})."
|
error_exit "[ERROR]: Unsupported IP option for standard jail: (${_ip6})."
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
info "\nValid: (${_ip6})."
|
info "\nValid: (${_ip6})."
|
||||||
IP6_ADDR="${_ip6}"
|
IP6_ADDR="${_ip6}"
|
||||||
elif [ "${_ip}" = "inherit" ] || [ "${_ip}" = "ip_hostname" ]; then
|
elif [ "${_ip}" = "inherit" ] || [ "${_ip}" = "ip_hostname" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user