Skip to content

Commit 115536a

Browse files
committed
Fix custom port
1 parent 661db68 commit 115536a

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
@@ -56,7 +56,7 @@ check_hestia_demo_mode
5656

5757
# Get original port
5858
LISTEN_ROWS=$(cat ${NGINX_CONFIG} | grep -c "listen")
59-
ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | grep -m 1 "listen" | sed 's/[^0-9]*//g')
59+
ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | sed 's/#IPV4[ \t\listen[ \t][^0-9]*//g' | sed 's/[^0-9]*//g')
6060

6161
# Check if port is different to nginx.conf
6262
if [ "$ORIGINAL_PORT" = "$PORT" ]; then

0 commit comments

Comments
 (0)