help
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
f5b697dbea
commit
a919c17dee
16
le
16
le
|
@ -42,6 +42,18 @@ gen_renew_config() {
|
|||
printf ')\n'
|
||||
}
|
||||
|
||||
usage() {
|
||||
while read -r line; do printf '%s\n' "$line"; done <<- EOF
|
||||
Usage: le [options] <-d domain> [-d domain] ...
|
||||
Options:
|
||||
-c <dir> # Configuration directory. Default: \$HOME/.acme
|
||||
-a <dir> # A dir to put challenges in. Default: /tmp/acme/challenges
|
||||
-d <domain> # Domain to issue the certificate for.
|
||||
# Can be specified multiple time for multi-domain certs.
|
||||
-h # Show this message.
|
||||
EOF
|
||||
}
|
||||
|
||||
main() {
|
||||
declare cfg_dir
|
||||
declare -a domains
|
||||
|
@ -60,6 +72,10 @@ main() {
|
|||
domains+=( "$2" )
|
||||
shift;;
|
||||
|
||||
-h)
|
||||
usage
|
||||
return 0;;
|
||||
|
||||
--)
|
||||
shift
|
||||
break;;
|
||||
|
|
17
le-renew
17
le-renew
|
@ -16,6 +16,17 @@ set_default() {
|
|||
fi
|
||||
}
|
||||
|
||||
usage() {
|
||||
while read -r line; do printf '%s\n' "$line"; done <<- EOF
|
||||
Usage: le [options] <-d domain> [-d domain] ...
|
||||
Options:
|
||||
-c <dir> # Configuration directory. Default: \$HOME/.acme
|
||||
-t <sec> # How many seconds till exipration to consider as soon. Default: 259200 (3 days)
|
||||
# Can be specified multiple time for multi-domain certs.
|
||||
-h # Show this message.
|
||||
EOF
|
||||
}
|
||||
|
||||
main() {
|
||||
declare cfg_dir
|
||||
declare -a domains le_args
|
||||
|
@ -30,9 +41,9 @@ main() {
|
|||
checkend_seconds=$2
|
||||
shift;;
|
||||
|
||||
-d)
|
||||
domains+=( "$2" )
|
||||
shift;;
|
||||
-h)
|
||||
usage
|
||||
return 0;;
|
||||
|
||||
--)
|
||||
shift
|
||||
|
|
Loading…
Reference in New Issue
Block a user