You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-grafana/collectd/root/entrypoint.sh

16 lines
404 B

3 years ago
#!/bin/sh
# Exit at first error
set -e
mkdir -p /srv/collectd/config
# Fill the varibles in funkwhale.template and put the result in default.conf
echo "Generating '/srv/collectd/config/collectd.conf'..."
envsubst < \
/srv/collectd/templates/collectd.conf.template > \
/srv/collectd/config/collectd.conf
echo "Starting collectd..."
collectd -C /srv/collectd/config/collectd.conf -f