bounca/images/bounca/root/entrypoint.d/10-settings.sh
2023-11-15 22:44:50 +01:00

10 lines
376 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
echo "Populating /tmpservices.yaml from /opt/bounca/etc/bounca/services.yaml.template"
envsubst < /opt/bounca/etc/bounca/services.yaml.template > /tmp/services.yaml
chmod 600 /tmp/services.yaml
echo "Populating /tmp/nginx.conf from /opt/bounca/etc/nginx/nginx.conf.template"
envsubst < /opt/bounca/etc/nginx/nginx.conf.template > /tmp/nginx.conf