mirror of
https://github.com/plantroon/acme.sh.git
synced 2025-01-22 04:12:02 +00:00
minor. remove the ugly return code for installcert.
This commit is contained in:
parent
2e3cb75530
commit
4c0d3f1b75
14
acme.sh
14
acme.sh
@ -1825,16 +1825,10 @@ issue() {
|
|||||||
_savedomainconf "Le_NextRenewTimeStr" "$Le_NextRenewTimeStr"
|
_savedomainconf "Le_NextRenewTimeStr" "$Le_NextRenewTimeStr"
|
||||||
|
|
||||||
|
|
||||||
_output="$(installcert $Le_Domain "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" 2>&1)"
|
if [ "$Le_RealCertPath$Le_RealKeyPath$Le_RealCACertPath$Le_ReloadCmd$Le_RealFullChainPath" ] ; then
|
||||||
_ret="$?"
|
installcert $Le_Domain "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath"
|
||||||
if [ "$_ret" = "9" ] ; then
|
|
||||||
#ignore the empty install error.
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
if [ "$_ret" != "0" ] ; then
|
|
||||||
_err "$_output"
|
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
renew() {
|
renew() {
|
||||||
@ -2010,7 +2004,7 @@ installcert() {
|
|||||||
|
|
||||||
if [ "$_installed" = "0" ] ; then
|
if [ "$_installed" = "0" ] ; then
|
||||||
_err "Nothing to install. You don't specify any parameter."
|
_err "Nothing to install. You don't specify any parameter."
|
||||||
return 9
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user