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
ddf77f10
Commit
ddf77f10
authored
Jan 24, 2019
by
Tobias Mädel
Browse files
Cleaned up dns_doapi.sh
parent
127532c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_doapi.sh
View file @
ddf77f10
...
...
@@ -26,13 +26,13 @@ dns_doapi_add() {
fi
_saveaccountconf_mutable DO_LETOKEN
"
$DO_LETOKEN
"
_info
"Adding TXT record to
${
_domain
}
as
${
fulldomain
}
"
_info
"Adding TXT record to
${
fulldomain
}
"
response
=
"
$(
_get
"
$DO_API
?token=
$DO_LETOKEN
&domain=
${
fulldomain
}
&value=
${
txtvalue
}
"
)
"
if
_contains
"
${
response
}
"
'success'
;
then
return
0
fi
_err
"Could not create resource record, check logs"
_err
$
response
_err
"
${
response
}
"
return
1
}
...
...
@@ -54,6 +54,6 @@ dns_doapi_rm() {
return
0
fi
_err
"Could not delete resource record, check logs"
_err
$
response
_err
"
${
response
}
"
return
1
}
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