Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
03140865
Commit
03140865
authored
Jan 25, 2018
by
neilpang
Browse files
fix for existing record
parent
a4fc802d
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_selectel.sh
View file @
03140865
...
...
@@ -36,7 +36,7 @@ dns_selectel_add() {
_info
"Adding record"
if
_sl_rest POST
"/
$_domain_id
/records/"
"{
\"
type
\"
:
\"
TXT
\"
,
\"
ttl
\"
: 60,
\"
name
\"
:
\"
$fulldomain
\"
,
\"
content
\"
:
\"
$txtvalue
\"
}"
;
then
if
_contains
"
$response
"
"
$txtvalue
"
;
then
if
_contains
"
$response
"
"
$txtvalue
"
||
_contains
"
$response
"
"record_already_exists"
;
then
_info
"Added, OK"
return
0
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