Ask for ip-address, even if in update mode.

This commit is contained in:
Christoph 2018-10-30 03:58:50 +01:00
parent 5ada4cf63c
commit 278c451ad1

View File

@ -825,47 +825,47 @@ if ! $UPDATE_SYMPA ; then
fi fi
fi fi
echo ""
echo ""
echo -e "\033[32m--\033[m"
echo ""
echo "Insert the IP-Addresses where the webserver should listen for that site."
echo ""
IPv4=
while [ "X$IPv4" = "X" ];do
if [ -z "$__ipv4" ]; then
echononl "IPv4 address: "
read IPv4
if [ "X$IPv4" = "X" ]; then
echo -e "\n\t\033[33m\033[1mEingabe erforderlich!\033[m\n"
fi
else
echononl "IPv4 address [$__ipv4]: "
read IPv4
if [ "X$IPv4" = "X" ]; then
IPv4=$__ipv4
fi
fi
done
IPv6=
while [ "X$IPv6" = "X" ];do
if [ -z "$__ipv6" ]; then
echononl "IPv6 address: "
read IPv6
if [ "X$IPv6" = "X" ]; then
echo -e "\n\t\033[33m\033[1mEingabe erforderlich!\033[m\n"
fi
else
echononl "IPv6 address [$__ipv6]: "
read IPv6
if [ "X$IPv6" = "X" ]; then
IPv6=$__ipv6
fi
fi
done
fi fi
echo ""
echo ""
echo -e "\033[32m--\033[m"
echo ""
echo "Insert the IP-Addresses where the webserver should listen for that site."
echo ""
IPv4=
while [ "X$IPv4" = "X" ];do
if [ -z "$__ipv4" ]; then
echononl "IPv4 address: "
read IPv4
if [ "X$IPv4" = "X" ]; then
echo -e "\n\t\033[33m\033[1mEingabe erforderlich!\033[m\n"
fi
else
echononl "IPv4 address [$__ipv4]: "
read IPv4
if [ "X$IPv4" = "X" ]; then
IPv4=$__ipv4
fi
fi
done
IPv6=
while [ "X$IPv6" = "X" ];do
if [ -z "$__ipv6" ]; then
echononl "IPv6 address: "
read IPv6
if [ "X$IPv6" = "X" ]; then
echo -e "\n\t\033[33m\033[1mEingabe erforderlich!\033[m\n"
fi
else
echononl "IPv6 address [$__ipv6]: "
read IPv6
if [ "X$IPv6" = "X" ]; then
IPv6=$__ipv6
fi
fi
done
SYMPA_ALIAS_FILE= SYMPA_ALIAS_FILE=