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
0c9a6da6
Commit
0c9a6da6
authored
Feb 08, 2022
by
peter
Browse files
more specific delete of records
parent
2c0cc87b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_curanet.sh
View file @
0c9a6da6
...
@@ -82,7 +82,7 @@ dns_curanet_rm() {
...
@@ -82,7 +82,7 @@ dns_curanet_rm() {
return
1
return
1
fi
fi
recordid
=
$(
echo
"
$response
"
| _egrep_o
"{
\"
id
\"
:[0-9]+,
\"
name
\"
:
\"
$fulldomain
\"
"
| _egrep_o
"id
\"
:[0-9]+"
|
cut
-c
5-
)
recordid
=
$(
echo
"
$response
"
| _egrep_o
"{
\"
id
\"
:[0-9]+,
\"
name
\"
:
\"
$fulldomain
\"
,
\"
type
\"
:
\"
TXT
\"
,
\"
ttl
\"
:60,
\"
priority
\"
:0,
\"
data
\"
:
\"
..
$txtvalue
"
| _egrep_o
"id
\"
:[0-9]+"
|
cut
-c
5-
)
_debug
"Deleting recordID
$recordid
"
_debug
"Deleting recordID
$recordid
"
response
=
"
$(
_post
""
"
$CURANET_REST_URL
/
${
_domain
}
/Records/
$recordid
"
""
"DELETE"
)
"
response
=
"
$(
_post
""
"
$CURANET_REST_URL
/
${
_domain
}
/Records/
$recordid
"
""
"DELETE"
)
"
return
0
return
0
...
...
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