Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
4c0d3f1b
"docs/modules/hdc1080.md" did not exist on "9d11543fa9d31f1607309849efc34a363e16522b"
Commit
4c0d3f1b
authored
Jul 08, 2016
by
neil
Browse files
minor. remove the ugly return code for installcert.
parent
2e3cb755
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
4c0d3f1b
...
@@ -1825,16 +1825,10 @@ issue() {
...
@@ -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() {
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment