major rewite to remove HEREDOC
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s

This commit is contained in:
2025-08-12 10:51:56 -05:00
parent b4a6caa179
commit 5de5a2bf48
4 changed files with 37 additions and 29 deletions

14
entrypoint.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
CFG="/var/www/html/daloradius/common/includes/daloradius.conf.php"
TMPL="/opt/daloradius.conf.php.tmpl"
OVR="/opt/override-db.php"
# Always (re)seed from upstream sample, then append our override
mkdir -p "$(dirname "$CFG")"
cp -f "$TMPL" "$CFG"
cat "$OVR" >> "$CFG"
# Start Apache in foreground
exec apachectl -DFOREGROUND