From 47f2bab9c7b66d752cf55b46878fa11ac1b71721 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Fri, 2 Mar 2018 14:17:56 -0600 Subject: [PATCH] Delete dns_lexicon.sh --- dnsapi/dns_lexicon.sh | 78 ------------------------------------------- 1 file changed, 78 deletions(-) delete mode 100755 dnsapi/dns_lexicon.sh diff --git a/dnsapi/dns_lexicon.sh b/dnsapi/dns_lexicon.sh deleted file mode 100755 index c09f16fd..00000000 --- a/dnsapi/dns_lexicon.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/usr/bin/env sh - -# dns api wrapper of lexicon for acme.sh - -# https://github.com/AnalogJ/lexicon -lexicon_cmd="lexicon" - -wiki="https://github.com/Neilpang/acme.sh/wiki/How-to-use-lexicon-dns-api" - -######## Public functions ##################### - -#Usage: add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs" -dns_lexicon_add() { - fulldomain=$1 - txtvalue=$2 - - domain=$(printf "%s" "$fulldomain" | cut -d . -f 2-999) - - if ! _exists "$lexicon_cmd"; then - _err "Please install $lexicon_cmd first: $wiki" - return 1 - fi - - if [ -z "$PROVIDER" ]; then - PROVIDER="" - _err "Please define env PROVIDER first: $wiki" - return 1 - fi - - _savedomainconf PROVIDER "$PROVIDER" - export PROVIDER - - # e.g. busybox-ash does not know [:upper:] - # shellcheck disable=SC2018,SC2019 - Lx_name=$(echo LEXICON_"${PROVIDER}"_USERNAME | tr 'a-z' 'A-Z') - Lx_name_v=$(eval echo \$"$Lx_name") - _secure_debug "$Lx_name" "$Lx_name_v" - if [ "$Lx_name_v" ]; then - _saveaccountconf "$Lx_name" "$Lx_name_v" - eval export "$Lx_name" - fi - - # shellcheck disable=SC2018,SC2019 - Lx_token=$(echo LEXICON_"${PROVIDER}"_TOKEN | tr 'a-z' 'A-Z') - Lx_token_v=$(eval echo \$"$Lx_token") - _secure_debug "$Lx_token" "$Lx_token_v" - if [ "$Lx_token_v" ]; then - _saveaccountconf "$Lx_token" "$Lx_token_v" - eval export "$Lx_token" - fi - - # shellcheck disable=SC2018,SC2019 - Lx_password=$(echo LEXICON_"${PROVIDER}"_PASSWORD | tr 'a-z' 'A-Z') - Lx_password_v=$(eval echo \$"$Lx_password") - _secure_debug "$Lx_password" "$Lx_password_v" - if [ "$Lx_password_v" ]; then - _saveaccountconf "$Lx_password" "$Lx_password_v" - eval export "$Lx_password" - fi - - # shellcheck disable=SC2018,SC2019 - Lx_domaintoken=$(echo LEXICON_"${PROVIDER}"_DOMAINTOKEN | tr 'a-z' 'A-Z') - Lx_domaintoken_v=$(eval echo \$"$Lx_domaintoken") - _secure_debug "$Lx_domaintoken" "$Lx_domaintoken_v" - if [ "$Lx_domaintoken_v" ]; then - eval export "$Lx_domaintoken" - _saveaccountconf "$Lx_domaintoken" "$Lx_domaintoken_v" - fi - - $lexicon_cmd "$PROVIDER" create "${domain}" TXT --name="_acme-challenge.${domain}." --content="${txtvalue}" - -} - -#fulldomain -dns_lexicon_rm() { - fulldomain=$1 - -}