5e16918fe8
This patch set add CA certificate to glance storage init and also converts the nginx.sh script to shell script. Change-Id: If3e0cd194af7ed3e15668df799b2b9026e0135d8
18 lines
249 B
Smarty
18 lines
249 B
Smarty
#!/bin/sh
|
|
set -xe
|
|
|
|
COMMAND="${@:-start}"
|
|
|
|
function 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 () {
|
|
nginx -s stop
|
|
}
|
|
|
|
$COMMAND
|