Explorar el Código

Update post-install-v3.sh

tteckster hace 3 años
padre
commit
ef534db843
Se han modificado 1 ficheros con 10 adiciones y 5 borrados
  1. 10 5
      misc/post-install-v3.sh

+ 10 - 5
misc/post-install-v3.sh

@@ -104,9 +104,14 @@ apt --reinstall install proxmox-widget-toolkit &>/dev/null
 msg_ok "Disabled Subscription Nag"
 fi
 
-msg_info "Updating Proxmox"
-sleep 2
-apt-get update
-apt-get dist-upgrade
-msg_ok "Finished"
+read -r -p "Update Proxmox VE 7 now? <Y/n> " prompt
+if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
+then
+msg_info "Updating Proxmox VE 7"
+apt-get update &>/dev/null
+apt-get -y dist-upgrade &>/dev/null
+msg_ok "Updated Proxmox VE 7"
+fi
 
+sleep 2
+msg_ok "Finished Post Install Routines"