mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
no need to test connection once again if it's already connected
This commit is contained in:
parent
9679ed4d74
commit
4f5ce798b6
@ -494,16 +494,16 @@ then
|
||||
read -p "Press any key to open /etc/network/interfaces..." -n1 -s
|
||||
echo -e "\e[0m"
|
||||
nano /etc/network/interfaces
|
||||
service networking restart
|
||||
clear
|
||||
echo "Testing if network is OK..."
|
||||
ifdown $IFACE
|
||||
sleep 1
|
||||
ifup $IFACE
|
||||
sleep 1
|
||||
bash $SCRIPTS/test_connection.sh
|
||||
sleep 1
|
||||
fi
|
||||
service networking restart
|
||||
clear
|
||||
echo "Testing if network is OK..."
|
||||
ifdown $IFACE
|
||||
sleep 1
|
||||
ifup $IFACE
|
||||
sleep 1
|
||||
bash $SCRIPTS/test_connection.sh
|
||||
sleep 1
|
||||
else
|
||||
echo "OK, then we will not set a static IP as your VPS provider already have setup the network for you..."
|
||||
sleep 5
|
||||
|
||||
Loading…
Reference in New Issue
Block a user