mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 06:48:04 +08:00
Apply suggestions from code review
Co-Authored-By: juan131 <juan_ariza_cordoba@hotmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
########################
|
||||
|
||||
Reference in New Issue
Block a user