switch to sign_domains command if domain parameter is given

This commit is contained in:
Lukas Schauer
2015-12-16 12:59:13 +01:00
parent 1ca883dee2
commit 6504a29a23

View File

@@ -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)