forked from ungleich-public/cdist
[__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
This commit is contained in:
parent
e49da474c4
commit
b832af5e3b
1 changed files with 2 additions and 1 deletions
|
@ -206,7 +206,8 @@ EOF
|
||||||
|
|
||||||
hook_contents_tail="$(cat <<EOF
|
hook_contents_tail="$(cat <<EOF
|
||||||
if [ -n "\${APPLY_HOOK}" ]; then
|
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
|
fi
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
|
|
Loading…
Reference in a new issue