Open ghost opened 7 years ago
Le_Domain is already exported as env variable. https://github.com/Neilpang/acme.sh/blob/master/acme.sh#L4409
Yes thats true.
It works fine on a renew but if i use it like this:
acme.sh --issue -d example.com --reload-cmd 'myscript.sh'
and in myscript.sh
is an echo $Le_Domain
this will be empty while running the above command.
Affects me, too.
First time with acme.sh --issue -d example.com --post-hook 'touch /tmp/bla_${Le_Domain}'
you'll get /tmp/bla_.
If you then do acme.sh --renew --force -d example.com
, you'll get /tmp/bla_example.com.
I guess just ignore this error since your reload command is already invoked or manually export Le_Domain when you directly execute installcert() or issue() with --reloadcmd option
Hi Neil, thank you for the great piece of shell code.
When issueing the first time a domain with the "--reloadcmd" switch, the Le_Domain isn't exported / empty. If running acme.sh with ex: the "renew" switch all is working fine.
acme.sh --issue -d example.com --reloadcmd 'myscript.sh'
content of 'myscript.sh'
Would be nice -if possible- to know the $Le_Domain or another varaible with the same content on the first "--issue" run.