mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
refactor: switch from remote URLs to local script execution
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
# It avoids making changes if the system is already connected to the internet.
|
# It avoids making changes if the system is already connected to the internet.
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
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"
|
||||||
@@ -183,8 +183,8 @@ show_main_menu() {
|
|||||||
1) repair_network ;;
|
1) repair_network ;;
|
||||||
2) verify_network ;;
|
2) verify_network ;;
|
||||||
3) show_ip_info ;;
|
3) show_ip_info ;;
|
||||||
4) exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh") ;;
|
4) 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