mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-05 00:17:01 +02:00
switch to sign_domains command if domain parameter is given
This commit is contained in:
@@ -555,7 +555,7 @@ while getopts ":hcer:d:xf:p:" option; do
|
||||
exit 0
|
||||
;;
|
||||
c)
|
||||
set_command cron
|
||||
set_command sign_domains
|
||||
;;
|
||||
e)
|
||||
set_command env
|
||||
@@ -569,6 +569,7 @@ while getopts ":hcer:d:xf:p:" option; do
|
||||
# PARAM_Usage: --domain (-d) domain.tld
|
||||
# PARAM_Description: Use specified domain name instead of domains.txt, use multiple times for certificate with SAN names
|
||||
check_parameters "${OPTARG:-}"
|
||||
set_command sign_domains
|
||||
if [[ -z "${PARAM_DOMAIN:-}" ]]; then
|
||||
PARAM_DOMAIN="${OPTARG}"
|
||||
else
|
||||
@@ -609,7 +610,7 @@ fi
|
||||
init_system
|
||||
|
||||
case "${COMMAND}" in
|
||||
cron)
|
||||
sign_domains)
|
||||
command_sign_domains
|
||||
;;
|
||||
env)
|
||||
|
||||
Reference in New Issue
Block a user