mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-22 06:00:46 +00:00
Alex Palaistras
d9f675817e
This contains the culmination of work done privately for a few months, and is intended to be a solid basis for other peoples' experimentations with setting up single-node, home-server setups using Fedora CoreOS.
10 lines
333 B
Bash
Executable File
10 lines
333 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Prepare configuration files for environment variable substitution.
|
|
ENV_NAMES="`env | awk -F '=' '{printf "$%s ", $1}'`"
|
|
for file in /etc/radicale/*.template; do
|
|
envsubst "${ENV_NAMES}" < "$file" > "`echo $file | awk -F '.template$' '{print $1}'`"
|
|
done
|
|
|
|
/usr/local/bin/radicale --config /etc/radicale/radicale.conf "$@"
|