Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
c6f7b7f3
Unverified
Commit
c6f7b7f3
authored
Jan 07, 2020
by
neil
Committed by
GitHub
Jan 07, 2020
Browse files
Merge pull request #2671 from Rayzilt/master
dns_lexicon.sh: Add extra variable _API_KEY
parents
c3fbc36c
f174d7dd
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_lexicon.sh
View file @
c6f7b7f3
...
@@ -63,6 +63,16 @@ _lexicon_init() {
...
@@ -63,6 +63,16 @@ _lexicon_init() {
_saveaccountconf_mutable
"
$Lx_domaintoken
"
"
$Lx_domaintoken_v
"
_saveaccountconf_mutable
"
$Lx_domaintoken
"
"
$Lx_domaintoken_v
"
eval export
"
$Lx_domaintoken
"
eval export
"
$Lx_domaintoken
"
fi
fi
# shellcheck disable=SC2018,SC2019
Lx_api_key
=
$(
echo
LEXICON_
"
${
PROVIDER
}
"
_API_KEY |
tr
'a-z'
'A-Z'
)
eval
"
$Lx_api_key
=
\$
{
$Lx_api_key
:-
$(
_readaccountconf_mutable
"
$Lx_api_key
"
)
}"
Lx_api_key_v
=
$(
eval echo
\$
"
$Lx_api_key
"
)
_secure_debug
"
$Lx_api_key
"
"
$Lx_api_key_v
"
if
[
"
$Lx_api_key_v
"
]
;
then
_saveaccountconf_mutable
"
$Lx_api_key
"
"
$Lx_api_key_v
"
eval export
"
$Lx_api_key
"
fi
}
}
######## Public functions #####################
######## Public functions #####################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment