Browse Source

renew() should return the function result code of issue()

currently the renew function does always return 0 even when the cert issuing failed. for now just return the function return code of issue(). 

maybe an additional offset (like +100) should be added to distinguish the issue error codes from the renew error codes.
pull/69/head
Thomas 9 years ago
parent
commit
2c06a14d19
  1. 3
      le.sh

3
le.sh

@ -892,7 +892,10 @@ renew() {
IS_RENEW="1" IS_RENEW="1"
issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd"
local res=$?
IS_RENEW="" IS_RENEW=""
return $res
} }
renewAll() { renewAll() {

Loading…
Cancel
Save