From 93df15c256610b925fdd4340ab4868b2e4116bdb Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 9 Feb 2017 22:47:47 +0100 Subject: [PATCH] removing extra network check --- wordpress-startup-script.sh | 45 +------------------------------------ 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/wordpress-startup-script.sh b/wordpress-startup-script.sh index 4fa2de5..6727981 100644 --- a/wordpress-startup-script.sh +++ b/wordpress-startup-script.sh @@ -303,6 +303,7 @@ echo clear # Get new server keys +echo "Adding new SSH keys..." rm -v /etc/ssh/ssh_host_* dpkg-reconfigure openssh-server @@ -358,50 +359,6 @@ echo sleep 3 clear -# Change IP -echo -e "\e[0m" -echo "The script will now configure your IP to be static." -echo -e "\e[36m" -echo -e "\e[1m" -echo "Your internal IP is: $ADDRESS" -echo -e "\e[0m" -echo -e "Write this down, you will need it to set static IP" -echo -e "in your router later. It's included in this guide:" -echo -e "https://www.techandme.se/open-port-80-443/ (step 1 - 5)" -echo -e "\e[32m" -read -p "Press any key to set static IP..." -n1 -s -clear -echo -e "\e[0m" -ifdown $IFACE -sleep 2 -ifup $IFACE -sleep 2 -bash $SCRIPTS/ip.sh -ifdown $IFACE -sleep 2 -ifup $IFACE -sleep 2 -echo -echo "Testing if network is OK..." -echo -bash $SCRIPTS/test_connection.sh -sleep 2 -echo -echo -e "\e[0mIf the output is \e[32mConnected! \o/\e[0m everything is working." -echo -e "\e[0mIf the output is \e[31mNot Connected!\e[0m you should change\nyour settings manually in the next step." -echo -e "\e[32m" -read -p "Press any key to open /etc/network/interfaces..." -n1 -s -echo -e "\e[0m" -nano /etc/network/interfaces -clear -echo "Testing if network is OK..." -ifdown $IFACE -sleep 2 -ifup $IFACE -sleep 2 -echo -bash $SCRIPTS/test_connection.sh - # Change password echo -e "\e[0m" echo "For better security, change the Linux password for user [wordpress]"