Allow __motd to read from stdin

remotes/origin/key_value-onchange
Jonas Weber 7 years ago
parent 2069650e74
commit bfde7a6cfa
  1. 3
      cdist/conf/type/__motd/manifest

@ -22,6 +22,9 @@
# Select motd source
if [ -f "$__object/parameter/source" ]; then
source="$(cat "$__object/parameter/source")"
if [ "$source" = "-" ]; then
source="${__object}/stdin"
fi
else
source="$__type/files/motd"
fi

Loading…
Cancel
Save