Update menu

This commit is contained in:
MacRimi
2025-11-14 20:38:07 +01:00
parent 79e9e5fcf1
commit 200ee075b5

12
menu
View File

@@ -31,7 +31,7 @@
# Configuration ============================================
LOCAL_SCRIPTS="/usr/local/share/proxmenux/scripts"
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main"
BASE_DIR="/usr/local/share/proxmenux"
CONFIG_FILE="$BASE_DIR/config.json"
CACHE_FILE="$BASE_DIR/cache.json"
@@ -43,11 +43,13 @@ if [[ -f "$UTILS_FILE" ]]; then
source "$UTILS_FILE"
fi
# =========================================================
# For now, update is not available in the local version.
# Take in mind that in future versions, updates must be
# a warning to update the .deb package
# =========================================================
check_updates() {
local INSTALL_SCRIPT="$BASE_DIR/install_proxmenux.sh"
@@ -83,13 +85,13 @@ check_updates() {
}
main_menu() {
exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"
exec bash <(curl -fsSL "$REPO_URL/scripts/menus/main_menu.sh")
}
load_language
initialize_cache
# Check updates doesn't make sense in offline mode
# check_updates
main_menu
check_updates
main_menu