1
0
mirror of https://github.com/elisspace/rtinst.git synced 2026-08-31 00:22:31 +00:00

Update rtinst.sh

This commit is contained in:
arakasi72
2017-06-04 11:51:58 +01:00
committed by GitHub
parent ba589fc1a5
commit 95de06f7b0

View File

@@ -167,18 +167,20 @@ while true
# function to enter IP address
enter_ip() {
until valid_ip $serverip && ask_user
do
echo "enter your server's IP address"
echo "e.g. 213.0.113.113"
read serverip
while true
do
if valid_ip $serverip ; then
echo "Your Server IP is $serverip"
echo -n "Is this correct y/n? "
ask_user && return 0
else
echo "Invalid IP address, please try again"
fi
done
echo "enter your server's IP address"
echo "e.g. 213.0.113.113"
read serverip
done
}
###############################
@@ -228,8 +230,6 @@ fi
# check IP Address
if [ $forceyes = 1 ]; then
echo "Your Server IP is $serverip"
echo -n "Is this correct y/n? "
enter_ip
fi