Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
65aa7b10
Commit
65aa7b10
authored
Jul 13, 2020
by
StefanAbl
Browse files
formatting
parent
f8c83302
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dynv6.sh
View file @
65aa7b10
...
...
@@ -109,13 +109,12 @@ _get_domain() {
#returns
#dynv6_keyfile path to the key that will be used
_get_authentication
()
{
if
[
"
$DYNV6_TOKEN
"
]
;
then
_debug
"Going to use the HTTP Token you specifed and saving it for futur use"
_saveaccountconf_mutable dynv6_token
"
$DYNV6_TOKEN
"
dynv6_token
=
"
$DYNV6_TOKEN
"
elif
[
"
$(
_readaccountconf_mutable dynv6_token
)
"
]
;
then
_debug
"Found a previously used HTTP token going to use that"
dynv6_token
=
"
$(
_readaccountconf_mutable dynv6_token
)
"
dynv6_token
=
"
${
DYNV6_TOKEN
:-
$(
_readaccountconf_mutable dynv6_token
)
}
"
if
[
"
$dynv6_token
"
]
;
then
_debug
"Found HTTP Token. Going to use the HTTP API and not the SSH API"
if
[
"
$DYNV6_TOKEN
"
]
;
then
_saveaccountconf_mutable dynv6_token
"
$dynv6_token
"
fi
else
_debug
"no HTTP token found. Looking for an SSH key"
dynv6_keyfile
=
"
${
dynv6_keyfile
:-
$(
_readaccountconf_mutable dynv6_keyfile
)
}
"
...
...
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