427050a15d
* chore(pre-commit): adds shellcheck * Resolves shellcheck linting issues in existing files
12 lines
351 B
Bash
Executable File
12 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
# shellcheck disable=SC2016,SC2046
|
|
defined_envs=$(printf '${%s} ' $(env | cut -d= -f1))
|
|
|
|
echo Starting nginx environment template rendering with "${defined_envs}"
|
|
|
|
envsubst "${defined_envs}" < /etc/nginx/templates/nginx.conf.template > /etc/nginx/conf.d/nginx.conf
|
|
|
|
echo Nginx conf rendered, starting server...
|
|
exec "$@"
|