Browse Source

Update post_install.sh

tteck 3 years ago
parent
commit
ff5379198b
1 changed files with 8 additions and 1 deletions
  1. 8 1
      post_install.sh

+ 8 - 1
post_install.sh

@@ -4,7 +4,14 @@ echo -e "\e[1;33m This script will Disable the Enterprise Repo, Add & Enable the
 Add & Disable Test Repo (repo's can be enabled/disabled via the UI in Repositories) 
 and attempt the No-Nag fix. PVE7 ONLY \e[0m"
 
-read -p "Press [Enter] to start the PVE7 Post Install Script"
+while true; do
+    read -p "Start the PVE7 Post Install Script (y/n)?" yn
+    case $yn in
+        [Yy]* ) break;;
+        [Nn]* ) exit;;
+        * ) echo "Please answer yes or no.";;
+    esac
+done
 
 sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pve-enterprise.list