Skip to content

Commit 93df15c

Browse files
author
Daniel Hansson
authored
removing extra network check
1 parent 606083d commit 93df15c

File tree

1 file changed

+1
-44
lines changed

1 file changed

+1
-44
lines changed

wordpress-startup-script.sh

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ echo
303303
clear
304304

305305
# Get new server keys
306+
echo "Adding new SSH keys..."
306307
rm -v /etc/ssh/ssh_host_*
307308
dpkg-reconfigure openssh-server
308309

@@ -358,50 +359,6 @@ echo
358359
sleep 3
359360
clear
360361

361-
# Change IP
362-
echo -e "\e[0m"
363-
echo "The script will now configure your IP to be static."
364-
echo -e "\e[36m"
365-
echo -e "\e[1m"
366-
echo "Your internal IP is: $ADDRESS"
367-
echo -e "\e[0m"
368-
echo -e "Write this down, you will need it to set static IP"
369-
echo -e "in your router later. It's included in this guide:"
370-
echo -e "https://www.techandme.se/open-port-80-443/ (step 1 - 5)"
371-
echo -e "\e[32m"
372-
read -p "Press any key to set static IP..." -n1 -s
373-
clear
374-
echo -e "\e[0m"
375-
ifdown $IFACE
376-
sleep 2
377-
ifup $IFACE
378-
sleep 2
379-
bash $SCRIPTS/ip.sh
380-
ifdown $IFACE
381-
sleep 2
382-
ifup $IFACE
383-
sleep 2
384-
echo
385-
echo "Testing if network is OK..."
386-
echo
387-
bash $SCRIPTS/test_connection.sh
388-
sleep 2
389-
echo
390-
echo -e "\e[0mIf the output is \e[32mConnected! \o/\e[0m everything is working."
391-
echo -e "\e[0mIf the output is \e[31mNot Connected!\e[0m you should change\nyour settings manually in the next step."
392-
echo -e "\e[32m"
393-
read -p "Press any key to open /etc/network/interfaces..." -n1 -s
394-
echo -e "\e[0m"
395-
nano /etc/network/interfaces
396-
clear
397-
echo "Testing if network is OK..."
398-
ifdown $IFACE
399-
sleep 2
400-
ifup $IFACE
401-
sleep 2
402-
echo
403-
bash $SCRIPTS/test_connection.sh
404-
405362
# Change password
406363
echo -e "\e[0m"
407364
echo "For better security, change the Linux password for user [wordpress]"

0 commit comments

Comments
 (0)