You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
307 B

#!/bin/bash
if [[ ! -z $NGINX_CONFIG_TEMPLATE ]]; then
echo $NGINX_CONFIG_TEMPLATE | envtpl > /etc/nginx/nginx.conf
elif [[ ! -z $NGINX_CONFIG_TEMPLATE_B64 ]]; then
echo $NGINX_CONFIG_TEMPLATE_B64 | base64 --decode | envtpl > /etc/nginx/nginx.conf
else
envtpl /etc/nginx/nginx.conf.tpl
fi
exec "$@"