Update post-install-v3.sh

This commit is contained in:
tteckster 2022-07-11 11:53:50 -04:00 committed by GitHub
parent fcff2c90dc
commit 9425642935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ function msg_ok() {
clear clear
header_info header_info
read -r -p "Disable Enterprise Repository? <Y/n> " prompt read -r -p "Disable Enterprise Repository? <y/n> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then then
msg_info "Disabling Enterprise Repository" msg_info "Disabling Enterprise Repository"
@ -60,7 +60,7 @@ sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pve-enterprise.list
msg_ok "Disabled Enterprise Repository" msg_ok "Disabled Enterprise Repository"
fi fi
read -r -p "Add/Correct PVE7 Sources (sources.list)? <Y/n> " prompt read -r -p "Add/Correct PVE7 Sources (sources.list)? <y/n> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then then
msg_info "Adding or Correcting PVE7 Sources" msg_info "Adding or Correcting PVE7 Sources"
@ -73,7 +73,7 @@ sleep 2
msg_ok "Added or Corrected PVE7 Sources" msg_ok "Added or Corrected PVE7 Sources"
fi fi
read -r -p "Enable No-Subscription Repository? <Y/n> " prompt read -r -p "Enable No-Subscription Repository? <y/n> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then then
msg_info "Enabling No-Subscription Repository" msg_info "Enabling No-Subscription Repository"
@ -84,7 +84,7 @@ sleep 2
msg_ok "Enabled No-Subscription Repository" msg_ok "Enabled No-Subscription Repository"
fi fi
read -r -p "Add (Disabled) Beta/Test Repository? <Y/n> " prompt read -r -p "Add (Disabled) Beta/Test Repository? <y/n> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then then
msg_info "Adding Beta/Test Repository and set disabled" msg_info "Adding Beta/Test Repository and set disabled"
@ -95,7 +95,7 @@ sleep 2
msg_ok "Added Beta/Test Repository" msg_ok "Added Beta/Test Repository"
fi fi
read -r -p "Disable Subscription Nag? <Y/n> " prompt read -r -p "Disable Subscription Nag? <y/n> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then then
msg_info "Disabling Subscription Nag" msg_info "Disabling Subscription Nag"
@ -104,7 +104,7 @@ apt --reinstall install proxmox-widget-toolkit &>/dev/null
msg_ok "Disabled Subscription Nag" msg_ok "Disabled Subscription Nag"
fi fi
read -r -p "Update Proxmox VE 7 now? <Y/n> " prompt read -r -p "Update Proxmox VE 7 now? <y/n> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then then
msg_info "Updating Proxmox VE 7" msg_info "Updating Proxmox VE 7"