Make glance nginx.sh POSIX compatible

'function' keyword is a bash extension and not recognizable by sh.

Change-Id: I96205e337a28e12f3e3d06ca99e5f04e0f9a38f4
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2020-08-11 01:30:09 -05:00
parent 676c72a52d
commit 0a1fa6c7b0
No known key found for this signature in database
GPG Key ID: F3E83668DBB223B3

View File

@ -3,14 +3,14 @@ set -xe
COMMAND="${@:-start}" COMMAND="${@:-start}"
function start () { start () {
envsubst < /etc/nginx/nginx.conf > /tmp/nginx.conf envsubst < /etc/nginx/nginx.conf > /tmp/nginx.conf
cat /tmp/nginx.conf cat /tmp/nginx.conf
nginx -t -c /tmp/nginx.conf nginx -t -c /tmp/nginx.conf
exec nginx -c /tmp/nginx.conf exec nginx -c /tmp/nginx.conf
} }
function stop () { stop () {
nginx -s stop nginx -s stop
} }