Skip to content

Commit fa44a6b

Browse files
committed
Prevent hestia-nginx to fail on upgrade due to busy backend port.
1 parent 2b21db8 commit fa44a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-change-sys-port

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ is_port_valid() {
2727

2828
# Check if PORT is already used
2929
BUSY_PORT=$(lsof -i:$PORT)
30-
if [ ! -z "$BUSY_PORT" ]; then
30+
if [ ! -z "$BUSY_PORT" ] && [ "$PORT" != "$BACKEND_PORT" ]; then
3131
echo "Port is already used by Hestia, please set anotherone!"
3232
log_event $E_INUSE "$ARGUMENTS"
3333
exit $E_INUSE

0 commit comments

Comments
 (0)