From bfde7a6cfaef95cb3a4b87b74da1ad076d950843 Mon Sep 17 00:00:00 2001 From: Jonas Weber Date: Wed, 31 Jan 2018 12:10:37 +0000 Subject: [PATCH] Allow __motd to read from stdin --- cdist/conf/type/__motd/manifest | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cdist/conf/type/__motd/manifest b/cdist/conf/type/__motd/manifest index 0e2e8097..cd741cf4 100755 --- a/cdist/conf/type/__motd/manifest +++ b/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