You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PBS SOURCES" --menu "This will set the correct sources to update and install Proxmox Backup Server.\n \nChange to Proxmox Backup Server sources?" 14 58 2 \
"Correct Debian sources for Proxmox Backup Server 3.x?" 14 58 2 "yes""""no"""3>&22>&11>&3)
53
107
case$CHOICEin
54
108
yes)
55
-
msg_info "Changing to Proxmox Backup Server Sources"
109
+
msg_info "Correcting Debian Sources"
56
110
cat <<EOF >/etc/apt/sources.list
57
111
deb http://deb.debian.org/debian ${VERSION} main contrib
58
112
deb http://deb.debian.org/debian ${VERSION}-updates main contrib
59
113
deb http://security.debian.org/debian-security ${VERSION}-security main contrib
60
114
EOF
61
-
msg_ok "Changed to Proxmox Backup Server Sources"
62
-
;;
63
-
no)
64
-
msg_error "Selected no to Correcting Proxmox Backup Server Sources"
115
+
msg_ok "Corrected Debian Sources"
65
116
;;
117
+
no) msg_error "Selected no to Correcting Debian Sources" ;;
66
118
esac
67
119
68
-
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PBS-ENTERPRISE" --menu "The 'pbs-enterprise' repository is only available to users who have purchased a Proxmox VE subscription.\n \nDisable 'pbs-enterprise' repository?" 14 58 2 \
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PBS-NO-SUBSCRIPTION" --menu "The 'pbs-no-subscription' repository provides access to all of the open-source components of Proxmox Backup Server.\n \nEnable 'pbs-no-subscription' repository?" 14 58 2 \
# deb http://download.proxmox.com/debian/pbs ${VERSION} pbstest
152
+
EOF
153
+
msg_ok "Added 'pbstest' repository (disabled)"
154
+
else
155
+
msg_ok "'pbstest' repository already exists"
156
+
fi
99
157
100
-
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PBS TEST" --menu "The 'pbstest' repository can give advanced users access to new features and updates before they are officially released.\n \nAdd (Disabled) 'pbstest' repository?" 14 58 2 \
msg_error "Selected no to Adding 'pbstest' repository"
193
+
msg_ok "Corrected Debian Sources"
113
194
;;
195
+
no) msg_error "Selected no to Correcting Debian Sources" ;;
114
196
esac
115
197
116
-
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUBSCRIPTION NAG" --menu "This will disable the nag message reminding you to purchase a subscription every time you log in to the web interface.\n \nDisable subscription nag?" 14 58 2 \
"Disable subscription nag in PBS UI?" 14 58 2 "yes""""no"""3>&22>&11>&3)
119
248
case$CHOICEin
120
249
yes)
121
-
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Support Subscriptions""Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software." 10 58
250
+
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox \
251
+
"Supporting the software's development team is essential.\nPlease consider buying a subscription." 10 58
122
252
msg_info "Disabling subscription nag"
123
-
echo"DPkg::Post-Invoke { \"if [ -s /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && ! grep -q -F 'NoMoreNagging' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; 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
124
-
msg_ok "Disabled subscription nag (Delete browser cache)"
msg_ok "Disabled subscription nag (clear browser cache!)"
125
255
;;
126
256
no)
127
-
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Support Subscriptions""Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software." 10 58
128
257
msg_error "Selected no to Disabling subscription nag"
Please run this script on every PBS node individually if you have multiple nodes.
281
+
282
+
After completing these steps, it is strongly recommended to REBOOT your node.
283
+
284
+
After the upgrade or post-install routines, always clear your browser cache or perform a hard reload (Ctrl+Shift+R) before using the PBS Web UI to avoid UI display issues." 20 80
285
+
286
+
# Reboot
287
+
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "REBOOT" --menu \
288
+
"Reboot Proxmox Backup Server now? (recommended)" 11 58 2 "yes""""no"""3>&22>&11>&3)
151
289
case$CHOICEin
152
290
yes)
153
-
msg_info "Rebooting Proxmox Backup Server"
291
+
msg_info "Rebooting PBS"
154
292
sleep 2
155
293
msg_ok "Completed Post Install Routines"
156
294
reboot
157
295
;;
158
296
no)
159
-
msg_error "Selected no to Rebooting Proxmox Backup Server (Reboot recommended)"
297
+
msg_error "Selected no to Reboot (Reboot recommended)"
160
298
msg_ok "Completed Post Install Routines"
161
299
;;
162
300
esac
163
301
}
164
302
165
-
header_info
166
-
echo -e "\nThis script will Perform Post Install Routines.\n"
167
-
whiletrue;do
168
-
read -p "Start the Proxmox Backup Server Post Install Script (y/n)?" yn
0 commit comments