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
This commit is contained in:
johnysigma 2025-08-04 16:43:37 +03:00
parent 94ea521ffa
commit 7e849ed778

View File

@ -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