From ba984592ed34a591e3b22175cbc33c734ed387d4 Mon Sep 17 00:00:00 2001 From: cod378 Date: Mon, 3 Nov 2025 01:22:24 +0000 Subject: [PATCH] refactor: replace remote script fetching with local file execution --- scripts/post_install/auto_post_install.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/post_install/auto_post_install.sh b/scripts/post_install/auto_post_install.sh index cdc3b04..e6d5a44 100644 --- a/scripts/post_install/auto_post_install.sh +++ b/scripts/post_install/auto_post_install.sh @@ -36,7 +36,7 @@ # Configuration -REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main" +LOCAL_SCRIPTS="/usr/local/share/proxmenux/scripts" BASE_DIR="/usr/local/share/proxmenux" UTILS_FILE="$BASE_DIR/utils.sh" VENV_PATH="/opt/googletrans-env" @@ -107,16 +107,11 @@ apt_upgrade() { if [[ "$pve_version" -ge 9 ]]; then - bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve9_2.sh") + bash "$LOCAL_SCRIPTS/global/update-pve9_2.sh" else - bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve8.sh") + bash "$LOCAL_SCRIPTS/global/update-pve8.sh" fi - - - - - } # ========================================================== @@ -147,14 +142,14 @@ remove_subscription_banner() { msg_warn "Banner removal cancelled by user." return 1 fi - bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve-v3.sh") + bash "$LOCAL_SCRIPTS/global/remove-banner-pve-v3.sh" else if ! whiptail --title "Proxmox VE 8.x Subscription Banner Removal" \ --yesno "Do you want to remove the Proxmox subscription banner from the web interface for PVE $pve_version?" 10 70; then msg_warn "Banner removal cancelled by user." return 1 fi - bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve8.sh") + bash "$LOCAL_SCRIPTS/global/remove-banner-pve8.sh" fi }