We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661db68 commit 115536aCopy full SHA for 115536a
bin/v-change-sys-port
@@ -56,7 +56,7 @@ check_hestia_demo_mode
56
57
# Get original port
58
LISTEN_ROWS=$(cat ${NGINX_CONFIG} | grep -c "listen")
59
-ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | grep -m 1 "listen" | sed 's/[^0-9]*//g')
+ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | sed 's/#IPV4[ \t\listen[ \t][^0-9]*//g' | sed 's/[^0-9]*//g')
60
61
# Check if port is different to nginx.conf
62
if [ "$ORIGINAL_PORT" = "$PORT" ]; then
0 commit comments