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
|
||||
|
Reference in New Issue
Block a user