pcp/root/usr/libexec/container-setup
2020-04-15 20:47:28 +02:00

11 lines
407 B
Bash
Executable file

#!/bin/sh -eu
: ${HOST_MOUNT:=''}
: ${REDIS_SERVERS:='localhost:6379'}
mkdir /etc/systemd/system/pmcd.service.d
envsubst '$HOST_MOUNT' < /usr/share/container-scripts/pcp/10-host_mount.conf.template > /etc/systemd/system/pmcd.service.d/10-host_mount.conf
envsubst '$REDIS_SERVERS' < /usr/share/container-scripts/pcp/pmproxy.conf.template > /etc/pcp/pmproxy/pmproxy.conf
echo Starting systemd...
exec "$@"