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
5f9b57d3
Commit
5f9b57d3
authored
Jan 24, 2019
by
Tobias Mädel
Browse files
Cleaned up dns_doapi.sh
parent
ddf77f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_doapi.sh
View file @
5f9b57d3
...
...
@@ -24,7 +24,7 @@ dns_doapi_add() {
_err
"Please set DO_LETOKEN and try again."
return
1
fi
_saveaccountconf_mutable DO_LETOKEN
"
$DO_LETOKEN
"
_saveaccountconf_mutable DO_LETOKEN
"
$DO_LETOKEN
"
_info
"Adding TXT record to
${
fulldomain
}
"
response
=
"
$(
_get
"
$DO_API
?token=
$DO_LETOKEN
&domain=
${
fulldomain
}
&value=
${
txtvalue
}
"
)
"
...
...
@@ -46,7 +46,7 @@ dns_doapi_rm() {
_err
"Please set DO_LETOKEN and try again."
return
1
fi
_saveaccountconf_mutable DO_LETOKEN
"
$DO_LETOKEN
"
_saveaccountconf_mutable DO_LETOKEN
"
$DO_LETOKEN
"
_info
"Deleting resource record
$fulldomain
"
response
=
"
$(
_get
"
$DO_API
?token=
$DO_LETOKEN
&domain=
${
fulldomain
}
&action=delete"
)
"
...
...
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