mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
refactor: replace remote script loading with local paths
This commit is contained in:
@@ -12,7 +12,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"
|
||||||
@@ -36,19 +36,19 @@ while true; do
|
|||||||
|
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
1)
|
1)
|
||||||
bash <(curl -s "$REPO_URL/scripts/storage/disk-passthrough.sh")
|
bash "$LOCAL_SCRIPTS/storage/disk-passthrough.sh"
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
bash <(curl -s "$REPO_URL/scripts/storage/disk-passthrough_ct.sh")
|
bash "$LOCAL_SCRIPTS/storage/disk-passthrough_ct.sh"
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
bash <(curl -s "$REPO_URL/scripts/storage/import-disk-image.sh")
|
bash "$LOCAL_SCRIPTS/storage/import-disk-image.sh"
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh")
|
exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh")
|
exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user