Use the raw directive to protect the shell code.
This commit is contained in:
parent
9f402fa94d
commit
547be699fd
|
@ -4,11 +4,14 @@
|
||||||
# renewal. It'll concatenate the needed certificates for the PEM file that
|
# renewal. It'll concatenate the needed certificates for the PEM file that
|
||||||
# HAProxy reads.
|
# HAProxy reads.
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
die() { echo "$*" 1>&2 ; exit 1; }
|
die() { echo "$*" 1>&2 ; exit 1; }
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
H_NAME="{{ letsencrypt_acme_sh_certs_data_prefix }}"
|
H_NAME="{{ letsencrypt_acme_sh_certs_data_prefix }}"
|
||||||
LE_CERTS_DIR=/var/lib/acme/live/$H_NAME
|
LE_CERTS_DIR=/var/lib/acme/live/$H_NAME
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
LE_ENV_FILE=/etc/default/acme_sh_request_env
|
LE_ENV_FILE=/etc/default/acme_sh_request_env
|
||||||
if [ -f "$LE_ENV_FILE" ] ; then
|
if [ -f "$LE_ENV_FILE" ] ; then
|
||||||
. "$LE_ENV_FILE"
|
. "$LE_ENV_FILE"
|
||||||
|
@ -52,3 +55,4 @@ elif [ "$ACTION" == "restart" ]; then
|
||||||
# script.
|
# script.
|
||||||
$container_cli restart "$haproxy_container_name"
|
$container_cli restart "$haproxy_container_name"
|
||||||
fi
|
fi
|
||||||
|
{% endraw %}
|
||||||
|
|
Loading…
Reference in New Issue