diff options
author | Thomas Lange <code@nerdmind.de> | 2017-02-10 04:43:10 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-02-10 04:44:13 +0100 |
commit | 4253ca7c677a52d31f3ca49551d1c9ee19ad6ee5 (patch) | |
tree | c006940cdc0ad5a790dd528e63ac85d02de35f4d | |
parent | 3fa5f826842972e54ebb6282e5f556ea03e17559 (diff) | |
download | painlessle-4253ca7c677a52d31f3ca49551d1c9ee19ad6ee5.tar.gz painlessle-4253ca7c677a52d31f3ca49551d1c9ee19ad6ee5.tar.xz painlessle-4253ca7c677a52d31f3ca49551d1c9ee19ad6ee5.zip |
Bugfix: Execute commands with "eval" to prevent problems with combined commands.
-rwxr-xr-x | painless-le.sh | 4 |
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 |