coreos-home-server/config/common/systemd/container-environment@.service

13 lines
378 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Container environment for %I
ConditionPathExists=%E/coreos-home-server/host.env
ConditionPathExists=%E/coreos-home-server/%i/%i.env.template
[Service]
Type=oneshot
EnvironmentFile=%E/coreos-home-server/host.env
ExecStart=/bin/sh -c 'envsubst < %E/coreos-home-server/%i/%i.env.template > %E/coreos-home-server/%i/%i.env'
[Install]
WantedBy=multi-user.target