mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-06 07:03:28 +02:00
Merge pull request #54 from germeier/fixdomainparameter
fix: --domain/-d is a parameter and not a command!
This commit is contained in:
@@ -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
|
||||
|
||||
2
test.sh
2
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!"
|
||||
|
||||
Reference in New Issue
Block a user