refactor: switch from remote URLs to local script execution

This commit is contained in:
cod378
2025-11-03 01:25:19 +00:00
parent ba984592ed
commit 51302a7c5a

View File

@@ -49,7 +49,7 @@
# Configuration # Configuration
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main" LOCAL_SCRIPTS="/usr/local/share/proxmenux/scripts"
BASE_DIR="/usr/local/share/proxmenux" BASE_DIR="/usr/local/share/proxmenux"
UTILS_FILE="$BASE_DIR/utils.sh" UTILS_FILE="$BASE_DIR/utils.sh"
VENV_PATH="/opt/googletrans-env" VENV_PATH="/opt/googletrans-env"
@@ -194,10 +194,10 @@ apt_upgrade() {
if [[ "$pve_version" -ge 9 ]]; then 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 else
bash <(curl -fsSL "$REPO_URL/scripts/global/update-pve8.sh") bash "$LOCAL_SCRIPTS/global/update-pve8.sh"
fi fi
@@ -2902,10 +2902,10 @@ remove_subscription_banner() {
if [[ "$pve_version" -ge 9 ]]; then 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 else
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve8.sh") bash "$LOCAL_SCRIPTS/global/remove-banner-pve8.sh"
fi fi
} }
@@ -4366,4 +4366,3 @@ done
check_extremeshok_warning check_extremeshok_warning
main_menu main_menu