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
054cb72e
Commit
054cb72e
authored
Jun 13, 2016
by
neil
Browse files
minor, save days only when necessary
parent
0e38c60d
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
054cb72e
...
...
@@ -1142,8 +1142,9 @@ issue() {
if
[
-z
"
$Le_HTTPPort
"
]
;
then
Le_HTTPPort
=
80
fi
_savedomainconf
"Le_HTTPPort"
"
$Le_HTTPPort
"
else
_savedomainconf
"Le_HTTPPort"
"
$Le_HTTPPort
"
fi
netprc
=
"
$(
_ss
"
$Le_HTTPPort
"
|
grep
"
$Le_HTTPPort
"
)
"
if
[
"
$netprc
"
]
;
then
...
...
@@ -1574,9 +1575,9 @@ issue() {
if
[
-z
"
$Le_RenewalDays
"
]
||
[
"
$Le_RenewalDays
"
-lt
"0"
]
||
[
"
$Le_RenewalDays
"
-gt
"80"
]
;
then
Le_RenewalDays
=
80
fi
_savedomainconf
"Le_RenewalDays"
"
$Le_RenewalDays
"
else
_savedomainconf
"Le_RenewalDays"
"
$Le_RenewalDays
"
fi
Le_NextRenewTime
=
$(
_math
$Le_CertCreateTime
+
$Le_RenewalDays
\*
24
\*
60
\*
60
)
_savedomainconf
"Le_NextRenewTime"
"
$Le_NextRenewTime
"
...
...
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