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
afdd02a8
Commit
afdd02a8
authored
Sep 03, 2017
by
neil
Committed by
GitHub
Sep 03, 2017
Browse files
Merge pull request #1006 from Neilpang/dev
Dev
parents
4373fdf4
c73fdd40
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
afdd02a8
...
@@ -3934,7 +3934,10 @@ issue() {
...
@@ -3934,7 +3934,10 @@ issue() {
Le_NextRenewTime
=
$(
_math
"
$Le_NextRenewTime
"
- 86400
)
Le_NextRenewTime
=
$(
_math
"
$Le_NextRenewTime
"
- 86400
)
_savedomainconf
"Le_NextRenewTime"
"
$Le_NextRenewTime
"
_savedomainconf
"Le_NextRenewTime"
"
$Le_NextRenewTime
"
_on_issue_success
"
$_post_hook
"
"
$_renew_hook
"
if
!
_on_issue_success
"
$_post_hook
"
"
$_renew_hook
"
;
then
_err
"Call hook error."
return
1
fi
if
[
"
$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain
"
]
;
then
if
[
"
$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain
"
]
;
then
_savedomainconf
"Le_RealCertPath"
"
$_real_cert
"
_savedomainconf
"Le_RealCertPath"
"
$_real_cert
"
...
@@ -4818,9 +4821,11 @@ install() {
...
@@ -4818,9 +4821,11 @@ install() {
_debug
"Skip install cron job"
_debug
"Skip install cron job"
fi
fi
if
!
_precheck
"
$_nocron
"
;
then
if
[
"
$IN_CRON
"
!=
"1"
]
;
then
_err
"Pre-check failed, can not install."
if
!
_precheck
"
$_nocron
"
;
then
return
1
_err
"Pre-check failed, can not install."
return
1
fi
fi
fi
if
[
-z
"
$_c_home
"
]
&&
[
"
$LE_CONFIG_HOME
"
!=
"
$LE_WORKING_DIR
"
]
;
then
if
[
-z
"
$_c_home
"
]
&&
[
"
$LE_CONFIG_HOME
"
!=
"
$LE_WORKING_DIR
"
]
;
then
...
@@ -4873,7 +4878,9 @@ install() {
...
@@ -4873,7 +4878,9 @@ install() {
_info
"Installed to
$LE_WORKING_DIR
/
$PROJECT_ENTRY
"
_info
"Installed to
$LE_WORKING_DIR
/
$PROJECT_ENTRY
"
_installalias
"
$_c_home
"
if
[
"
$IN_CRON
"
!=
"1"
]
;
then
_installalias
"
$_c_home
"
fi
for
subf
in
$_SUB_FOLDERS
;
do
for
subf
in
$_SUB_FOLDERS
;
do
if
[
-d
"
$subf
"
]
;
then
if
[
-d
"
$subf
"
]
;
then
...
@@ -4963,7 +4970,7 @@ _uninstallalias() {
...
@@ -4963,7 +4970,7 @@ _uninstallalias() {
}
}
cron
()
{
cron
()
{
IN_CRON
=
1
export
IN_CRON
=
1
_initpath
_initpath
_info
"
$(
__green
"===Starting cron==="
)
"
_info
"
$(
__green
"===Starting cron==="
)
"
if
[
"
$AUTO_UPGRADE
"
=
"1"
]
;
then
if
[
"
$AUTO_UPGRADE
"
=
"1"
]
;
then
...
...
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