coreos-home-server/config/common/systemd/container-environment@.service
Alex Palaistras a4580e1cae Improve service initialization, move system files
System files are moved to `/etc/coreos-home-server` to be unambiguous
in relation to other, pre-installed system files. Long-running services
are also now defined as `Type=notify`, which helps improve ordering and
dependencies.
2021-08-14 22:28:28 +01:00

13 lines
378 B
Desktop File

[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