fix: make interactive menu the default when running script

Running ./update-Nitrov3.sh without arguments now opens the TUI
control panel instead of immediately running a full update.
Use 'update' subcommand or --only= for direct CLI updates.
This commit is contained in:
root
2026-06-25 19:51:12 +02:00
parent 60162d7882
commit 90e674a8ca
+5 -5
View File
@@ -1920,8 +1920,8 @@ show_help() {
echo "" echo ""
echo -e " ${C_BOLD}COMMANDS:${C_RESET}" echo -e " ${C_BOLD}COMMANDS:${C_RESET}"
echo -e " ${C_GREEN}update${C_RESET} Run full update (default when no command)" echo -e " ${C_GREEN}update${C_RESET} Run full update (use --only for selective)"
echo -e " ${C_GREEN}interactive${C_RESET} Launch interactive TUI control panel" echo -e " ${C_GREEN}interactive${C_RESET} Launch interactive TUI control panel (default)"
echo -e " ${C_GREEN}status${C_RESET} Show system status dashboard" echo -e " ${C_GREEN}status${C_RESET} Show system status dashboard"
echo -e " ${C_GREEN}health${C_RESET} Run comprehensive health check" echo -e " ${C_GREEN}health${C_RESET} Run comprehensive health check"
echo -e " ${C_GREEN}backup${C_RESET} Create database backup" echo -e " ${C_GREEN}backup${C_RESET} Create database backup"
@@ -2003,7 +2003,7 @@ parse_args() {
--url|-u) shift; NITRO_SITE_URL="$1" ;; --url|-u) shift; NITRO_SITE_URL="$1" ;;
--only=*) SELECTIVE_UPDATE="${1#*=}" ;; --only=*) SELECTIVE_UPDATE="${1#*=}" ;;
-*) die "Unknown option: $1 (use --help for usage)" ;; -*) die "Unknown option: $1 (use --help for usage)" ;;
*) [ -z "$cmd" ] && cmd="update" ;; *) [ -z "$cmd" ] && cmd="interactive" ;;
esac esac
shift shift
done done
@@ -2016,8 +2016,8 @@ parse_args() {
esac esac
fi fi
# Default command # Default command: interactive menu
[ -z "$cmd" ] && cmd="update" [ -z "$cmd" ] && cmd="interactive"
echo "$cmd" echo "$cmd"
} }