Commit 6504a29a authored by Lukas Schauer's avatar Lukas Schauer

switch to sign_domains command if domain parameter is given

parent 1ca883de
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment