Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
1566656a
Commit
1566656a
authored
Jan 03, 2022
by
neilpang
Committed by
neil
Jan 06, 2022
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/3869
parent
737eba57
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
1566656a
...
...
@@ -5154,7 +5154,7 @@ renew() {
_isEcc
=
"
$2
"
_initpath
"
$Le_Domain
"
"
$_isEcc
"
_set_level
=
${
NOTIFY_LEVEL
:-
$NOTIFY_LEVEL_DEFAULT
}
_info
"
$(
__green
"Renew: '
$Le_Domain
'"
)
"
if
[
!
-f
"
$DOMAIN_CONF
"
]
;
then
_info
"'
$Le_Domain
' is not an issued domain, skip."
...
...
@@ -5189,6 +5189,11 @@ renew() {
if
[
-z
"
$FORCE
"
]
&&
[
"
$Le_NextRenewTime
"
]
&&
[
"
$(
_time
)
"
-lt
"
$Le_NextRenewTime
"
]
;
then
_info
"Skip, Next renewal time is:
$(
__green
"
$Le_NextRenewTimeStr
"
)
"
_info
"Add '
$(
__red
'--force'
)
' to force to renew."
if
[
-z
"
$_ACME_IN_RENEWALL
"
]
;
then
if
[
$_set_level
-ge
$NOTIFY_LEVEL_SKIP
]
;
then
_send_notify
"Renew
$Le_Domain
skipped"
"Good, the cert is skipped."
"
$NOTIFY_HOOK
"
"
$RENEW_SKIP
"
fi
fi
return
"
$RENEW_SKIP
"
fi
...
...
@@ -5215,6 +5220,17 @@ renew() {
fi
_ACME_IS_RENEW
=
""
if
[
-z
"
$_ACME_IN_RENEWALL
"
]
;
then
if
[
"
$res
"
=
"0"
]
;
then
if
[
$_set_level
-ge
$NOTIFY_LEVEL_RENEW
]
;
then
_send_notify
"Renew
$d
success"
"Good, the cert is renewed."
"
$NOTIFY_HOOK
"
0
fi
else
if
[
$_set_level
-ge
$NOTIFY_LEVEL_ERROR
]
;
then
_send_notify
"Renew
$d
error"
"There is an error."
"
$NOTIFY_HOOK
"
1
fi
fi
fi
return
"
$res
"
}
...
...
@@ -5232,6 +5248,7 @@ renewAll() {
_notify_code
=
$RENEW_SKIP
_set_level
=
${
NOTIFY_LEVEL
:-
$NOTIFY_LEVEL_DEFAULT
}
_debug
"_set_level"
"
$_set_level
"
export
_ACME_IN_RENEWALL
=
1
for
di
in
"
${
CERT_HOME
}
"
/
*
.
*
/
;
do
_debug di
"
$di
"
if
!
[
-d
"
$di
"
]
;
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