mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
10 lines
324 B
Plaintext
10 lines
324 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Prepare configuration files for environment variable substitution.
|
||
|
ENV_NAMES="$(env | awk -F '=' '{printf "$%s ", $1}')"
|
||
|
for file in /etc/spectrum2/*.template; do
|
||
|
envsubst "${ENV_NAMES}" < "${file}" > $(echo "${file}" | awk -F '.template$' '{print $1}')
|
||
|
done
|
||
|
|
||
|
/usr/bin/spectrum2 -n /etc/spectrum2/spectrum.cfg
|