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
2021-11-15 22:23:45 +09:00

13 lines
540 B
Django/Jinja

#!/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'] }}' \
"$@"