From 51302a7c5a1b1d39d71f3b12d38964af75089250 Mon Sep 17 00:00:00 2001 From: cod378 Date: Mon, 3 Nov 2025 01:25:19 +0000 Subject: [PATCH] refactor: switch from remote URLs to local script execution --- scripts/post_install/customizable_post_install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/post_install/customizable_post_install.sh b/scripts/post_install/customizable_post_install.sh index a9d48ed..63cebc9 100644 --- a/scripts/post_install/customizable_post_install.sh +++ b/scripts/post_install/customizable_post_install.sh @@ -49,7 +49,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" @@ -194,10 +194,10 @@ 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 @@ -2902,10 +2902,10 @@ remove_subscription_banner() { if [[ "$pve_version" -ge 9 ]]; then - bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve-v3.sh") + bash "$LOCAL_SCRIPTS/global/remove-banner-pve-v3.sh" else - bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve8.sh") + bash "$LOCAL_SCRIPTS/global/remove-banner-pve8.sh" fi } @@ -4366,4 +4366,3 @@ done check_extremeshok_warning main_menu -