]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
switch to sign_domains command if domain parameter is given
authorLukas Schauer <lukas@schauer.so>
Wed, 16 Dec 2015 11:59:13 +0000 (12:59 +0100)
committerLukas Schauer <lukas@schauer.so>
Wed, 16 Dec 2015 11:59:13 +0000 (12:59 +0100)
letsencrypt.sh

index 9593b6b25693c3c2642e3cc509c69cdf63356d37..bab8c836563051f298c15973dee964d3693f33da 100755 (executable)
@@ -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)