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
6e3ba3ca
Commit
6e3ba3ca
authored
Jan 18, 2020
by
StefanAbl
Browse files
travis
parent
0f54cf83
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dynv6.sh
View file @
6e3ba3ca
...
...
@@ -12,7 +12,6 @@ dns_dynv6_add() {
_debug fulldomain
"
$fulldomain
"
_debug txtvalue
"
$txtvalue
"
_get_keyfile
_info
"using keyfile
$dynv6_keyfile
"
_get_domain
"
$fulldomain
"
_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"
return
1
fi
}
#Usage: _acme-challenge.www.example.dynv6.net
#returns
...
...
@@ -103,7 +101,7 @@ _get_domain() {
#returns
#dynv6_keyfile path to the key that will be used
_get_keyfile
()
{
_debug
"get keyfile method called"
_debug
"get keyfile method called"
dynv6_keyfile
=
"
${
dynv6_keyfile
:-
$(
_readaccountconf_mutable dynv6_keyfile
)
}
"
_debug Your key is
"
$dynv6_keyfile
"
if
[
-z
"
$dynv6_keyfile
"
]
;
then
...
...
@@ -113,13 +111,11 @@ _get_keyfile() {
_generate_new_key
_info
"Please add this key to dynv6.com
$(
cat
"
$dynv6_keyfile
.pub"
)
"
_info
"Hit Enter to contiue"
read
_
read
-r
_
#save the credentials to the account conf file.
else
dynv6_keyfile
=
"
$KEY
"
fi
_saveaccountconf_mutable dynv6_keyfile
"
$dynv6_keyfile
"
fi
}
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