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
dcf4f8f6
Commit
dcf4f8f6
authored
Jun 14, 2016
by
neil
Browse files
minor, format the output of "--list"
parent
054cb72e
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
dcf4f8f6
...
@@ -1638,19 +1638,27 @@ renewAll() {
...
@@ -1638,19 +1638,27 @@ renewAll() {
}
}
list
()
{
list
()
{
local
_raw
=
"
$1
"
_initpath
_initpath
printf
"Main_Domain|SAN_Domains|Created|Renew
\n
"
for
d
in
$(
ls
-F
${
CERT_HOME
}
/ |
grep
[
^.].
*
[
.].
*
/
$
)
;
do
_sep
=
"|"
d
=
$(
echo
$d
|
cut
-d
'/'
-f
1
)
if
[
"
$_raw
"
]
;
then
(
printf
"Main_Domain
${
_sep
}
SAN_Domains
${
_sep
}
Created
${
_sep
}
Renew
\n
"
_initpath
$d
for
d
in
$(
ls
-F
${
CERT_HOME
}
/ |
grep
[
^.].
*
[
.].
*
/
$
)
;
do
if
[
-f
"
$DOMAIN_CONF
"
]
;
then
d
=
$(
echo
$d
|
cut
-d
'/'
-f
1
)
.
"
$DOMAIN_CONF
"
(
printf
"
$Le_Domain
|
$Le_Alt
|
$Le_CertCreateTimeStr
|
$Le_NextRenewTimeStr
\n
"
_initpath
$d
fi
if
[
-f
"
$DOMAIN_CONF
"
]
;
then
)
.
"
$DOMAIN_CONF
"
done
printf
"
$Le_Domain
${
_sep
}
$Le_Alt
${
_sep
}
$Le_CertCreateTimeStr
${
_sep
}
$Le_NextRenewTimeStr
\n
"
fi
)
done
else
list
"raw"
| column
-t
-s
"
$_sep
"
fi
}
}
...
@@ -2203,6 +2211,7 @@ Parameters:
...
@@ -2203,6 +2211,7 @@ Parameters:
--accountkey Specifies the account key path, Only valid for the '--install' command.
--accountkey Specifies the account key path, Only valid for the '--install' command.
--days Specifies the days to renew the cert when using '--issue' command. The max value is 80 days.
--days Specifies the days to renew the cert when using '--issue' command. The max value is 80 days.
--httpport Specifies the standalone listening port. Only valid if the server is behind a reverse proxy or load balancer.
--httpport Specifies the standalone listening port. Only valid if the server is behind a reverse proxy or load balancer.
--listraw Only used for '--list' command, list the certs in raw format.
"
"
}
}
...
@@ -2253,6 +2262,7 @@ _process() {
...
@@ -2253,6 +2262,7 @@ _process() {
_certhome
=
""
_certhome
=
""
_httpport
=
""
_httpport
=
""
_dnssleep
=
""
_dnssleep
=
""
_listraw
=
""
while
[
${#}
-gt
0
]
;
do
while
[
${#}
-gt
0
]
;
do
case
"
${
1
}
"
in
case
"
${
1
}
"
in
...
@@ -2464,6 +2474,10 @@ _process() {
...
@@ -2464,6 +2474,10 @@ _process() {
Le_HTTPPort
=
"
$_httpport
"
Le_HTTPPort
=
"
$_httpport
"
shift
shift
;;
;;
--listraw
)
_listraw
=
"raw"
;;
*
)
*
)
_err
"Unknown parameter :
$1
"
_err
"Unknown parameter :
$1
"
return
1
return
1
...
@@ -2493,7 +2507,7 @@ _process() {
...
@@ -2493,7 +2507,7 @@ _process() {
revoke
"
$_domain
"
revoke
"
$_domain
"
;;
;;
list
)
list
)
list
list
"
$_listraw
"
;;
;;
installcronjob
)
installcronjob
;;
installcronjob
)
installcronjob
;;
uninstallcronjob
)
uninstallcronjob
;;
uninstallcronjob
)
uninstallcronjob
;;
...
...
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