major rewite to remove HEREDOC
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
This commit is contained in:
14
entrypoint.sh
Normal file
14
entrypoint.sh
Normal 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
|
Reference in New Issue
Block a user