mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
refactor: switch from remote URLs to local script execution
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user