14 lines
540 B
Text
14 lines
540 B
Text
|
#!/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'] }}' \
|
||
|
"$@"
|