From c25b4a2836bc73d80ef1ff8c0b7cd130d3274e79 Mon Sep 17 00:00:00 2001 From: mjbnz Date: Wed, 27 Feb 2019 11:33:02 +1300 Subject: [PATCH] Populate $Le_Domain in _installcert() if empty This allows the reload command to use $Le_Domain when called during initial cert --issue --- acme.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/acme.sh b/acme.sh index 93112a1a..56a85e8b 100755 --- a/acme.sh +++ b/acme.sh @@ -4758,6 +4758,10 @@ _installcert() { _reload_cmd="$6" _backup_prefix="$7" + if [ "$Le_Domain" = "" ]; then + Le_Domain="$_main_domain" + fi + if [ "$_real_cert" = "$NO_VALUE" ]; then _real_cert="" fi