From 27094cdb655c8903f984c49bd957b001365b54dd Mon Sep 17 00:00:00 2001 From: Markus Germeier Date: Wed, 16 Dec 2015 19:48:48 +0100 Subject: [PATCH 1/2] fix: --domain/-d is a parameter and not a command! --- letsencrypt.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/letsencrypt.sh b/letsencrypt.sh index c4d6df8..8762663 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -570,7 +570,6 @@ 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 From f194498478af1dd9b82863b62ec9e4aa3c61cbc8 Mon Sep 17 00:00:00 2001 From: Markus Germeier Date: Wed, 16 Dec 2015 20:03:43 +0100 Subject: [PATCH 2/2] fixed test.sh script --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 881ce5c..b697f22 100755 --- a/test.sh +++ b/test.sh @@ -114,7 +114,7 @@ _CHECK_ERRORLOG # Temporarily move config out of the way and try signing certificate by using temporary config location _TEST "Try signing using temporary config location and with domain as command line parameter" mv config.sh tmp_config.sh -./letsencrypt.sh --domain "${TMP_URL}" -f tmp_config.sh > tmplog 2> errorlog +./letsencrypt.sh --cron --domain "${TMP_URL}" -f tmp_config.sh > tmplog 2> errorlog _CHECK_LOG "Generating private key" _CHECK_LOG "Requesting challenge for ${TMP_URL}" _CHECK_LOG "Challenge is valid!"