From a35f5138be89b0c5fc89e768f7eec781e22abccb Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Mon, 6 Feb 2017 23:57:23 +0100 Subject: [PATCH] Don't start the script unless the user wants to --- nextcloud_install_production.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 4999afc3..6689c607 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -69,10 +69,9 @@ echo "If the field after ':' is blank you are probably running as a pure root us echo "It's possible to install with root, but there will be minor errors." echo echo "Please create a user with sudo permissions if you want an optimal installation." -echo "This script continues in 30 seconds, press CTRL+C to abort..." -sleep 30 -echo - +echo -e "\e[32m" +read -p "Press any key to start the script. Press CTRL+C to abort." -n1 -s +echo -e "\e[0m" # Prefer IPv4 sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf