mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-31 06:03:04 +02:00
allow to set domains.txt as cli argument (fixes #678)
This commit is contained in:
@@ -503,6 +503,7 @@ load_config() {
|
||||
[[ -n "${PARAM_NO_LOCK:-}" ]] && LOCKFILE=""
|
||||
|
||||
[[ -n "${PARAM_HOOK:-}" ]] && HOOK="${PARAM_HOOK}"
|
||||
[[ -n "${PARAM_DOMAINS_TXT:-}" ]] && DOMAINS_TXT="${PARAM_DOMAINS_TXT}"
|
||||
[[ -n "${PARAM_PREFERRED_CHAIN:-}" ]] && PREFERRED_CHAIN="${PARAM_PREFERRED_CHAIN}"
|
||||
[[ -n "${PARAM_CERTDIR:-}" ]] && CERTDIR="${PARAM_CERTDIR}"
|
||||
[[ -n "${PARAM_ALPNCERTDIR:-}" ]] && ALPNCERTDIR="${PARAM_ALPNCERTDIR}"
|
||||
@@ -2132,6 +2133,14 @@ main() {
|
||||
PARAM_ACCOUNT_KEY="${1}"
|
||||
;;
|
||||
|
||||
# PARAM_Usage: --domains-txt path/to/domains.txt
|
||||
# PARAM_Description: Use specified domains.txt instead of default/configured one
|
||||
--domains-txt)
|
||||
shift 1
|
||||
check_parameters "${1:-}"
|
||||
PARAM_DOMAINS_TXT="${1}"
|
||||
;;
|
||||
|
||||
# PARAM_Usage: --config (-f) path/to/config
|
||||
# PARAM_Description: Use specified config file
|
||||
--config|-f)
|
||||
|
||||
Reference in New Issue
Block a user