diff --git a/iso/bootstrap_admin_node.sh b/iso/bootstrap_admin_node.sh index 13effbfe4..86005ba64 100755 --- a/iso/bootstrap_admin_node.sh +++ b/iso/bootstrap_admin_node.sh @@ -320,32 +320,6 @@ EOF # Generate Fuel UUID [ ! -f "/etc/fuel/fuel-uuid" ] && uuidgen > /etc/fuel/fuel-uuid || : -# Prepare custom /etc/issue logon banner and script for changing IP in it -# We can have several interface naming schemes applied and several interface -# UI will listen on -ipstr="" -NL=$'\n' -for ip in `ip -o -4 a | grep -e "e[nt][hopsx].*" | awk '{print \$4 }' | cut -d/ -f1`; do - ipstr="${ipstr}https://${ip}:8443${NL}" -done -cat > /etc/issue <> /etc/ntp.conf && systemctl restart ntpd # Disabling splash @@ -400,7 +374,6 @@ systemctl start sshd systemctl enable iptables.service systemctl start iptables.service - if [ "$wait_for_external_config" == "yes" ]; then wait_timeout=3000 pidfile=/var/lock/wait_for_external_config @@ -422,6 +395,31 @@ $wait_timeout" rm -f $pidfile fi +# Prepare custom /etc/issue logon banner and script for changing IP in it +# We can have several interface naming schemes applied and several interface +# UI will listen on +ipstr="" +NL=$'\n' +for ip in `ip -o -4 addr show | awk '/e[nt][hopsx]/ { split($4, arr, /\//); print arr[1] }'`; do + ipstr="${ipstr}https://${ip}:8443${NL}" +done +cat > /etc/issue <