Update Post Install

This commit is contained in:
MacRimi
2025-10-31 20:03:34 +01:00
parent c046b77223
commit 4d109c0481
4 changed files with 317 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ initialize_cache
OS_CODENAME="$(grep "VERSION_CODENAME=" /etc/os-release | cut -d"=" -f 2 | xargs)"
RAM_SIZE_GB=$(( $(vmstat -s | grep -i "total memory" | xargs | cut -d" " -f 1) / 1024 / 1000))
NECESSARY_REBOOT=0
SCRIPT_TITLE="Customizable post-installation optimization script"
export SCRIPT_TITLE="ProxMenux Optimization Post-Installation"
# ==========================================================
# Tool registration system
@@ -107,7 +107,7 @@ apt_upgrade() {
if [[ "$pve_version" -ge 9 ]]; then
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve.sh")
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve9_2.sh")
else
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve8.sh")
@@ -132,13 +132,15 @@ remove_subscription_banner() {
local pve_version
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)
cleanup
if [[ -z "$pve_version" ]]; then
msg_error "Unable to detect Proxmox version."
return 1
fi
kill -TERM "$SPINNER_PID" 2>/dev/null
sleep 1
if [[ "$pve_version" -ge 9 ]]; then
if ! whiptail --title "Proxmox VE ${pve_version} Subscription Banner Removal" \
--yesno "$(translate "Do you want to remove the Proxmox subscription banner from the web interface for PVE $pve_version?")\n\n$(translate "Attention: Removing the subscription banner may cause issues in the web interface after a future update.")\n\n$(translate "If this happens, you can restore the backup from the 'Subscription Banner Removal' option in 'Uninstall optimizations'.")\n\n$(translate "Are you sure you want to continue?")" 14 75; then
@@ -875,9 +877,9 @@ EOF
# ==========================================================
run_complete_optimization() {
clear
show_proxmenux_logo
msg_title "$(translate "ProxMenux Optimization Post-Installation")"
msg_title "$(translate "$SCRIPT_TITLE")"
ensure_tools_json

View File

@@ -194,7 +194,7 @@ apt_upgrade() {
if [[ "$pve_version" -ge 9 ]]; then
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve.sh")
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve9_2.sh")
else
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve8.sh")