fix: restore port prompt in Quick installation mode

The Quick installation mode was no longer asking for the port number,
just using the default 7655. This regression was introduced when
the duplicate main function was removed.

Restored the port prompt to Quick mode so users can specify a custom
port if needed, matching the original behavior.
This commit is contained in:
Pulse Monitor
2025-08-30 16:29:50 +00:00
parent 0376076825
commit 8a13e1e893
+7 -1
View File
@@ -332,7 +332,13 @@ create_lxc_container() {
onboot=1
firewall=1
unprivileged=1
frontend_port=7655
# Ask for port even in quick mode
echo
safe_read_with_default "Port [7655]: " frontend_port "7655"
if [[ ! "$frontend_port" =~ ^[0-9]+$ ]] || [[ "$frontend_port" -lt 1 ]] || [[ "$frontend_port" -gt 65535 ]]; then
print_info "Using default: 7655"
frontend_port=7655
fi
# Quick mode should ask about auto-updates too
echo
echo "Enable automatic updates?"