mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-10-06 08:19:07 +00:00
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:
parent
94ea521ffa
commit
7e849ed778
@ -744,7 +744,13 @@ main() {
|
||||
|
||||
detect_os
|
||||
check_existing_installation
|
||||
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user