Browse Source

[__letsencrypt_cert] Don't mess with user script indentation

This could break in odd ways if they passed sth like:
cat <<eof
bla bla
eof
__letsencrypt_cert-fix-hooks
evilham 1 year ago
parent
commit
b832af5e3b
  1. 3
      cdist/conf/type/__letsencrypt_cert/manifest

3
cdist/conf/type/__letsencrypt_cert/manifest vendored

@ -206,7 +206,8 @@ EOF
hook_contents_tail="$(cat <<EOF
if [ -n "\${APPLY_HOOK}" ]; then
$(sed -e 's/^/ /' "${hook_source}")
# Messing with indentation can eff up the users' scripts, let's not
$(cat "${hook_source}")
fi
EOF
)"

Loading…
Cancel
Save