lemonldap-ng/images/lemonldap-ng/root/entrypoint.d/10-conf.sh

11 lines
269 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
[ -e "/tmp/nginx.conf" ] || touch /tmp/nginx.conf || true
if [ -w "/tmp/nginx.conf" ]; then
echo Rendering /etc/nginx/lemonldap-ng.conf.template in /tmp/nginx.conf
envsubst < /etc/nginx/lemonldap-ng.conf.template > /tmp/nginx.conf
fi