Update network_menu.sh

This commit is contained in:
MacRimi 2025-02-02 10:12:20 +01:00 committed by GitHub
parent 9b93b83783
commit 6375d43ce7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,18 +13,19 @@
# Configuration ============================================ # Configuration ============================================
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main" REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main"
UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh"
BASE_DIR="/usr/local/share/proxmenux" BASE_DIR="/usr/local/share/proxmenux"
CACHE_FILE="$BASE_DIR/cache.json" UTILS_FILE="$BASE_DIR/utils.sh"
VENV_PATH="/opt/googletrans-env" VENV_PATH="/opt/googletrans-env"
LANGUAGE=$(jq -r '.language // "en"' "$BASE_DIR/config.json" 2>/dev/null)
if ! source <(curl -sSf "$UTILS_URL"); then if [[ -f "$UTILS_FILE" ]]; then
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL" source "$UTILS_FILE"
exit 1
fi fi
load_language
initialize_cache
# ========================================================== # ==========================================================
while true; do while true; do
OPTION=$(whiptail --title "$(translate "Network Menu")" --menu "$(translate "Select an option:")" 15 60 2 \ OPTION=$(whiptail --title "$(translate "Network Menu")" --menu "$(translate "Select an option:")" 15 60 2 \
"1" "$(translate "Repair Network")" \ "1" "$(translate "Repair Network")" \