Merge "Make glance nginx.sh POSIX compatible"

This commit is contained in:
Zuul
2020-08-11 23:43:59 +00:00
committed by Gerrit Code Review

View File

@@ -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
}