diff --git a/glance/templates/bin/_nginx.sh.tpl b/glance/templates/bin/_nginx.sh.tpl index 92b09c0f82..53418a5ecf 100644 --- a/glance/templates/bin/_nginx.sh.tpl +++ b/glance/templates/bin/_nginx.sh.tpl @@ -3,14 +3,14 @@ set -xe COMMAND="${@:-start}" -function start () { +start () { envsubst < /etc/nginx/nginx.conf > /tmp/nginx.conf cat /tmp/nginx.conf nginx -t -c /tmp/nginx.conf exec nginx -c /tmp/nginx.conf } -function stop () { +stop () { nginx -s stop }