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

Handle stdin to __systemd_unit correctly
remotes/origin/key_value-onchange
Darko Poljak 7 years ago committed by GitHub
commit 45e351c19c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      cdist/conf/type/__systemd_unit/manifest

@ -34,6 +34,11 @@ if [ -z "${source}" ] && [ "${state}" != "absent" ]; then
exit 0
fi
# stdin is not propagated automatically to sub-objects
if [ "${source}" = "-" ]; then
source="${__object}/stdin"
fi
__config_file "/etc/systemd/system/${name}" \
--mode 644 \
--onchange "systemctl daemon-reload" \

Loading…
Cancel
Save