coreos-home-server/service/spectrum/container/run-spectrum

10 lines
324 B
Plaintext
Raw Normal View History

2021-07-28 23:14:00 +00:00
#!/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