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
ccf9a997
Commit
ccf9a997
authored
Jul 28, 2017
by
Ondrej Simek
Browse files
Fix the previous rushed commit.
parent
d6780f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_he.sh
View file @
ccf9a997
...
...
@@ -46,9 +46,14 @@ dns_he_add() {
body
=
"
$body
&TTL=300"
body
=
"
$body
&hosted_dns_editrecord=Submit"
response
=
"
$(
_post
"
$body
"
"https://dns.he.net/"
)
"
exitcode
=
$?
exit_code
=
"
$?
"
if
[
"
$exit_code
"
-eq
0
]
;
then
_info
"TXT record added successfuly."
else
_err
"Couldn't add the TXT record."
return
"
$exit_code
"
fi
_debug2 response
"
$response
"
return
$exitvalue
}
#-- dns_he_rm() - Remove TXT record ------------------------------------
...
...
@@ -90,7 +95,7 @@ dns_he_rm() {
_post
"
$body
"
"https://dns.he.net/"
\
|
grep
'<div id="dns_status" onClick="hideThis(this);">Successfully removed record.</div>'
\
>
/dev/null
if
[
$?
-eq
0
]
;
then
if
[
"
$?
"
-eq
0
]
;
then
_info
"Record removed successfuly."
else
_err
\
...
...
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