#!/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