aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpainless-le.sh4
1 files 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