use heredoc for command

This commit is contained in:
Mark 2022-04-09 07:59:36 +01:00
parent e5cfd8ef0a
commit 71c62bead9
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ chmod -cR u+s,g+s,o+s ${ACME_HOME}
apt install sudo socat curl coreutils
# Download & install.
sudo -s -u "${ACME_USER}" curl -o "${ACME_SCRIPT_TMP}" "${ACME_SCRIPT_URL}" && bash ${ACME_SCRIPT_TMP} --install
CMD=<<CMD
sudo -s -u "${ACME_USER}" curl -o "${ACME_SCRIPT_TMP}" "${ACME_SCRIPT_URL}" && bash ${ACME_SCRIPT_TMP} --home ${ACME_HOME} --install
CMD
$CMD
}