Browse Source

travis

pull/2470/head
StefanAbl 5 years ago
parent
commit
6e3ba3ca45
  1. 6
      dnsapi/dns_dynv6.sh

6
dnsapi/dns_dynv6.sh

@ -12,7 +12,6 @@ dns_dynv6_add() {
_debug fulldomain "$fulldomain" _debug fulldomain "$fulldomain"
_debug txtvalue "$txtvalue" _debug txtvalue "$txtvalue"
_get_keyfile _get_keyfile
_info "using keyfile $dynv6_keyfile" _info "using keyfile $dynv6_keyfile"
_get_domain "$fulldomain" _get_domain "$fulldomain"
_your_hosts="$(ssh -i "$dynv6_keyfile" api@dynv6.com hosts)" _your_hosts="$(ssh -i "$dynv6_keyfile" api@dynv6.com hosts)"
@ -72,7 +71,6 @@ _generate_new_key() {
_err "There is already a file in $dynv6_keyfile or $dynv6_keyfile.pub" _err "There is already a file in $dynv6_keyfile or $dynv6_keyfile.pub"
return 1 return 1
fi fi
} }
#Usage: _acme-challenge.www.example.dynv6.net #Usage: _acme-challenge.www.example.dynv6.net
#returns #returns
@ -113,13 +111,11 @@ _get_keyfile() {
_generate_new_key _generate_new_key
_info "Please add this key to dynv6.com $(cat "$dynv6_keyfile.pub")" _info "Please add this key to dynv6.com $(cat "$dynv6_keyfile.pub")"
_info "Hit Enter to contiue" _info "Hit Enter to contiue"
read _
read -r _
#save the credentials to the account conf file. #save the credentials to the account conf file.
else else
dynv6_keyfile="$KEY" dynv6_keyfile="$KEY"
fi fi
_saveaccountconf_mutable dynv6_keyfile "$dynv6_keyfile" _saveaccountconf_mutable dynv6_keyfile "$dynv6_keyfile"
fi fi
} }
Loading…
Cancel
Save