]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Fix error on docker deploy command with spaces.
authoralex <alexej.disterhoft@vindler.de>
Tue, 25 Feb 2020 11:33:50 +0000 (12:33 +0100)
committeralex <alexej.disterhoft@vindler.de>
Tue, 25 Feb 2020 11:37:46 +0000 (12:37 +0100)
This adds quotes to the last eval in _getdeployconf which is reponsible
for loading and exporting saved environment variables back into the
acme.sh process. This caused some errors if used with the docker
deploy-hook and the example nginx "service nginx force-reload" command
as it contains spaces.

acme.sh

diff --git a/acme.sh b/acme.sh
index 3a01c13d3b70eee23037abb9d3996f1d7d1c4654..283b0a399e0d3659b5143b59a136dbcbddf1478d 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -2166,7 +2166,7 @@ _getdeployconf() {
     return 0 # do nothing
   fi
   _saved=$(_readdomainconf "SAVED_$_rac_key")
-  eval "export $_rac_key=$_saved"
+  eval "export $_rac_key=\"$_saved\""
 }
 
 #_saveaccountconf  key  value  base64encode