From 4253ca7c677a52d31f3ca49551d1c9ee19ad6ee5 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 10 Feb 2017 04:43:10 +0100 Subject: Bugfix: Execute commands with "eval" to prevent problems with combined commands. --- painless-le.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/painless-le.sh b/painless-le.sh index 8cbbc32..d4085de 100755 --- a/painless-le.sh +++ b/painless-le.sh @@ -87,7 +87,7 @@ fi #=============================================================================== # Execute defined command BEFORE the ACME challenge is started #=============================================================================== -[ ! -z "${LETSENCRYPT_COMMAND_BEFORE}" ] && $($LETSENCRYPT_COMMAND_BEFORE) +[ ! -z "${LETSENCRYPT_COMMAND_BEFORE}" ] && eval $LETSENCRYPT_COMMAND_BEFORE #=============================================================================== # Execute Let's Encrypt and accomplish the ACME challenge to get the certificate @@ -119,4 +119,4 @@ chown --reference "${CONFIDENTIAL}" "${INTERMEDIATE}" "${CERTIFICATE_ONLY}" "${C #=============================================================================== # Execute defined command AFTER the ACME challenge is completed #=============================================================================== -[ ! -z "${LETSENCRYPT_COMMAND_AFTER}" ] && $($LETSENCRYPT_COMMAND_AFTER) \ No newline at end of file +[ ! -z "${LETSENCRYPT_COMMAND_AFTER}" ] && eval $LETSENCRYPT_COMMAND_AFTER \ No newline at end of file -- cgit v1.2.3