Merge pull request #613 from thriqon/handle-stdin-from-systemd-unit-correctly

Handle stdin to __systemd_unit correctly
This commit is contained in:
Darko Poljak 2018-01-21 12:22:28 +01:00 committed by GitHub
commit 45e351c19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" \