From 7e849ed7780132c67344a37f80cd67782043f982 Mon Sep 17 00:00:00 2001 From: johnysigma Date: Mon, 4 Aug 2025 16:43:37 +0300 Subject: [PATCH] Fix port conflict during updates - Skip port availability check during update mode - Existing services will be using the ports, so checking causes false conflicts - Add log message explaining why port check is skipped - This fixes the 'Port 4001 is already in use' error during updates --- scripts/install-debros-network.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install-debros-network.sh b/scripts/install-debros-network.sh index 825cf48..8b4ce0a 100755 --- a/scripts/install-debros-network.sh +++ b/scripts/install-debros-network.sh @@ -744,7 +744,13 @@ main() { detect_os check_existing_installation - check_ports + + # Skip port check in update mode since services are already running + if [ "$UPDATE_MODE" != true ]; then + check_ports + else + log "Update mode: skipping port availability check" + fi # Check and install Go if needed if ! check_go_installation; then