From ca2a96b3f312ed9decff046b638087fd816cde84 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 27 Apr 2016 22:29:35 +0800 Subject: [PATCH] ignore the installcert error for 'issue' --- acme.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index e84011cf..fd29e322 100755 --- a/acme.sh +++ b/acme.sh @@ -1474,7 +1474,10 @@ issue() { installcert $Le_Domain "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" - + if [ "$?" = "9" ] ; then + #ignore the empty install error. + return 0 + fi } renew() { @@ -1609,7 +1612,7 @@ installcert() { if [ "$_installed" = "0" ] ; then _err "Nothing to install. You don't specify any parameter." - return 1 + return 9 fi }