Commit 65aa7b10 authored by StefanAbl's avatar StefanAbl
Browse files

formatting

parent f8c83302
...@@ -109,13 +109,12 @@ _get_domain() { ...@@ -109,13 +109,12 @@ _get_domain() {
#returns #returns
#dynv6_keyfile path to the key that will be used #dynv6_keyfile path to the key that will be used
_get_authentication() { _get_authentication() {
if [ "$DYNV6_TOKEN" ]; then dynv6_token="${DYNV6_TOKEN:-$(_readaccountconf_mutable dynv6_token)}"
_debug "Going to use the HTTP Token you specifed and saving it for futur use" if [ "$dynv6_token" ]; then
_saveaccountconf_mutable dynv6_token "$DYNV6_TOKEN" _debug "Found HTTP Token. Going to use the HTTP API and not the SSH API"
dynv6_token="$DYNV6_TOKEN" if [ "$DYNV6_TOKEN" ]; then
elif [ "$(_readaccountconf_mutable dynv6_token)" ]; then _saveaccountconf_mutable dynv6_token "$dynv6_token"
_debug "Found a previously used HTTP token going to use that" fi
dynv6_token="$(_readaccountconf_mutable dynv6_token)"
else else
_debug "no HTTP token found. Looking for an SSH key" _debug "no HTTP token found. Looking for an SSH key"
dynv6_keyfile="${dynv6_keyfile:-$(_readaccountconf_mutable dynv6_keyfile)}" dynv6_keyfile="${dynv6_keyfile:-$(_readaccountconf_mutable dynv6_keyfile)}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment