This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-linkding/templates/systemd-run.sh.j2

14 lines
540 B
Text
Raw Normal View History

2021-11-15 13:23:45 +00:00
#!/usr/bin/env bash
set -euo pipefail
systemd-run \
--pty \
--property=User={{ host.data.systemd['User'] }} \
--property=Group={{ host.data.systemd['Group'] }} \
--property=EnvironmentFile={{ host.data.systemd['EnvironmentFile'] }} \
--property=WorkingDirectory={{ host.data.systemd['WorkingDirectory'] }} \
--property=RootDirectory={{ host.data.systemd['RootDirectory'] }} \
--property='BindPaths={{ host.data.systemd['BindPaths'] }}' \
--property='BindReadOnlyPaths={{ host.data.systemd['BindReadOnlyPaths'] }}' \
"$@"