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
eef38fcc
Commit
eef38fcc
authored
Mar 07, 2016
by
theit8514
Browse files
Modified code for Le_ReloadCmd
parent
ea455f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
eef38fcc
...
...
@@ -412,9 +412,6 @@ _initpath() {
if
[
-z
"
$CA_CERT_PATH
"
]
;
then
CA_CERT_PATH
=
"
$domainhome
/ca.cer"
fi
if
[
-z
"
$POST_RENEW_PATH
"
]
;
then
POST_RENEW_PATH
=
"
$domainhome
/post-renew.sh"
fi
}
...
...
@@ -962,9 +959,6 @@ renew() {
local
res
=
$?
IS_RENEW
=
""
if
[
-x
"
$POST_RENEW_PATH
"
-a
"
$res
"
-eq
"0"
]
;
then
(
cd
$DOMAIN_PATH
&&
exec
$POST_RENEW_PATH
)
fi
return
$res
}
...
...
@@ -996,15 +990,14 @@ renewAll() {
Le_ReloadCmd
=
""
DOMAIN_CONF
=
""
DOMAIN_PATH
=
""
DOMAIN_CONF
=
""
DOMAIN_SSL_CONF
=
""
CSR_PATH
=
""
CERT_KEY_PATH
=
""
CERT_PATH
=
""
CA_CERT_PATH
=
""
ACCOUNT_KEY_PATH
=
""
POST_RENEW_PATH
=
""
wellknown_path
=
""
...
...
@@ -1061,7 +1054,7 @@ installcert() {
if
[
"
$Le_ReloadCmd
"
]
;
then
_info
"Run Le_ReloadCmd:
$Le_ReloadCmd
"
eval
$Le_ReloadCmd
(
cd
$DOMAIN_PATH
&&
eval
$Le_ReloadCmd
)
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