Apply suggestions from code review

Co-Authored-By: juan131 <juan_ariza_cordoba@hotmail.com>
This commit is contained in:
Marko Mikulicic
2019-05-01 12:28:59 +02:00
committed by GitHub
parent 4e1128ac69
commit 3e9c1ad7ec

View File

@@ -111,7 +111,7 @@ nginx_config_http_port() {
local http_port=${1:-8080}
debug "Configuring default HTTP port..."
# TODO: find an appropriate NGINX parser to avoid 'sed calls'
sed -i -r "s/(listen\s+)[0-9]{1,5};/\1${http_port};/g" ${NGINX_CONFDIR}/nginx.conf
sed -i -E "s/(listen\s+)[0-9]{1,5};/\1${http_port};/g" ${NGINX_CONFDIR}/nginx.conf
}
########################