forked from ungleich-public/cdist
Merge pull request #613 from thriqon/handle-stdin-from-systemd-unit-correctly
Handle stdin to __systemd_unit correctly
This commit is contained in:
commit
45e351c19c
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@ if [ -z "${source}" ] && [ "${state}" != "absent" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# stdin is not propagated automatically to sub-objects
|
||||||
|
if [ "${source}" = "-" ]; then
|
||||||
|
source="${__object}/stdin"
|
||||||
|
fi
|
||||||
|
|
||||||
__config_file "/etc/systemd/system/${name}" \
|
__config_file "/etc/systemd/system/${name}" \
|
||||||
--mode 644 \
|
--mode 644 \
|
||||||
--onchange "systemctl daemon-reload" \
|
--onchange "systemctl daemon-reload" \
|
||||||
|
|
Loading…
Reference in a new issue