|
|
|
@ -58,7 +58,7 @@ function msg_ok() {
|
|
|
|
|
clear
|
|
|
|
|
header_info
|
|
|
|
|
read -r -p "Disable Enterprise Repository? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Disabling Enterprise Repository"
|
|
|
|
|
sleep 2
|
|
|
|
|
sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pbs-enterprise.list
|
|
|
|
@ -66,7 +66,7 @@ if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
read -r -p "Add/Correct PBS Sources (sources.list)? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Adding or Correcting PBS Sources"
|
|
|
|
|
cat <<EOF >/etc/apt/sources.list
|
|
|
|
|
deb http://ftp.debian.org/debian bullseye main contrib
|
|
|
|
@ -78,7 +78,7 @@ EOF
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
read -r -p "Enable No-Subscription Repository? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Enabling No-Subscription Repository"
|
|
|
|
|
cat <<EOF >>/etc/apt/sources.list
|
|
|
|
|
deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
|
|
|
|
@ -88,7 +88,7 @@ EOF
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
read -r -p "Add (Disabled) Beta/Test Repository? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Adding Beta/Test Repository and set disabled"
|
|
|
|
|
cat <<EOF >>/etc/apt/sources.list
|
|
|
|
|
# deb http://download.proxmox.com/debian/pbs bullseye pbstest
|
|
|
|
@ -98,7 +98,7 @@ EOF
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
read -r -p "Disable Subscription Nag? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Disabling Subscription Nag"
|
|
|
|
|
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
|
|
|
|
|
apt --reinstall install proxmox-widget-toolkit &>/dev/null
|
|
|
|
@ -106,7 +106,7 @@ if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
read -r -p "Update Proxmox Backup Server now? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Updating Proxmox Backup Server (Patience)"
|
|
|
|
|
apt-get update &>/dev/null
|
|
|
|
|
apt-get -y dist-upgrade &>/dev/null
|
|
|
|
@ -114,7 +114,7 @@ if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
read -r -p "Reboot Proxmox Backup Server now? <y/N> " prompt
|
|
|
|
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
|
|
|
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|
|
|
|
msg_info "Rebooting Proxmox Backup Server"
|
|
|
|
|
sleep 2
|
|
|
|
|
msg_ok "Completed Post Install Routines"
|
|
|
|
|