Browse Source
Merge pull request #1804 from ctron/feature/add_lexicon_opts_1
Add support for additional Lexicon options
pull/1756/head
neil
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
2 deletions
-
dnsapi/dns_lexicon.sh
|
@ -78,7 +78,11 @@ dns_lexicon_add() { |
|
|
|
|
|
|
|
|
domain=$(printf "%s" "$fulldomain" | cut -d . -f 2-999) |
|
|
domain=$(printf "%s" "$fulldomain" | cut -d . -f 2-999) |
|
|
|
|
|
|
|
|
$lexicon_cmd "$PROVIDER" create "${domain}" TXT --name="_acme-challenge.${domain}." --content="${txtvalue}" |
|
|
|
|
|
|
|
|
_secure_debug LEXICON_OPTS "$LEXICON_OPTS" |
|
|
|
|
|
_savedomainconf LEXICON_OPTS "$LEXICON_OPTS" |
|
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC2086 |
|
|
|
|
|
$lexicon_cmd "$PROVIDER" $LEXICON_OPTS create "${domain}" TXT --name="_acme-challenge.${domain}." --content="${txtvalue}" |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -93,6 +97,7 @@ dns_lexicon_rm() { |
|
|
|
|
|
|
|
|
domain=$(printf "%s" "$fulldomain" | cut -d . -f 2-999) |
|
|
domain=$(printf "%s" "$fulldomain" | cut -d . -f 2-999) |
|
|
|
|
|
|
|
|
$lexicon_cmd "$PROVIDER" delete "${domain}" TXT --name="_acme-challenge.${domain}." --content="${txtvalue}" |
|
|
|
|
|
|
|
|
# shellcheck disable=SC2086 |
|
|
|
|
|
$lexicon_cmd "$PROVIDER" $LEXICON_OPTS delete "${domain}" TXT --name="_acme-challenge.${domain}." --content="${txtvalue}" |
|
|
|
|
|
|
|
|
} |
|
|
} |