mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-23 08:48:30 +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
|
exit 0
|
||||||
;;
|
;;
|
||||||
c)
|
c)
|
||||||
set_command cron
|
set_command sign_domains
|
||||||
;;
|
;;
|
||||||
e)
|
e)
|
||||||
set_command env
|
set_command env
|
||||||
@@ -569,6 +569,7 @@ while getopts ":hcer:d:xf:p:" option; do
|
|||||||
# PARAM_Usage: --domain (-d) domain.tld
|
# PARAM_Usage: --domain (-d) domain.tld
|
||||||
# PARAM_Description: Use specified domain name instead of domains.txt, use multiple times for certificate with SAN names
|
# PARAM_Description: Use specified domain name instead of domains.txt, use multiple times for certificate with SAN names
|
||||||
check_parameters "${OPTARG:-}"
|
check_parameters "${OPTARG:-}"
|
||||||
|
set_command sign_domains
|
||||||
if [[ -z "${PARAM_DOMAIN:-}" ]]; then
|
if [[ -z "${PARAM_DOMAIN:-}" ]]; then
|
||||||
PARAM_DOMAIN="${OPTARG}"
|
PARAM_DOMAIN="${OPTARG}"
|
||||||
else
|
else
|
||||||
@@ -609,7 +610,7 @@ fi
|
|||||||
init_system
|
init_system
|
||||||
|
|
||||||
case "${COMMAND}" in
|
case "${COMMAND}" in
|
||||||
cron)
|
sign_domains)
|
||||||
command_sign_domains
|
command_sign_domains
|
||||||
;;
|
;;
|
||||||
env)
|
env)
|
||||||
|
|||||||
Reference in New Issue
Block a user