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.
This commit is contained in:
Thomas 2016-02-11 22:45:21 +01:00
parent 86c9e55ca2
commit 2c06a14d19
1 changed files with 3 additions and 0 deletions

3
le.sh
View File

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