From 4f5ce798b63e89a61710c854bcdfd653477dad01 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 7 Feb 2017 13:52:16 +0100 Subject: [PATCH] no need to test connection once again if it's already connected --- nextcloud-startup-script.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nextcloud-startup-script.sh b/nextcloud-startup-script.sh index faf6ff8e..929b3752 100644 --- a/nextcloud-startup-script.sh +++ b/nextcloud-startup-script.sh @@ -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