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
bcc1b7b4
Commit
bcc1b7b4
authored
Nov 17, 2020
by
jakelamotta
Browse files
Fix comments
parent
b19cb080
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_simply.sh
View file @
bcc1b7b4
...
@@ -59,7 +59,7 @@ dns_simply_rm() {
...
@@ -59,7 +59,7 @@ dns_simply_rm() {
_debug _sub_domain
"
$_sub_domain
"
_debug _sub_domain
"
$_sub_domain
"
_debug _domain
"
$_domain
"
_debug _domain
"
$_domain
"
_debug
"
$txtvalue
"
_debug
txtvalue
"
$txtvalue
"
_debug
"Getting existing records"
_debug
"Getting existing records"
...
@@ -78,9 +78,9 @@ dns_simply_rm() {
...
@@ -78,9 +78,9 @@ dns_simply_rm() {
if
[[
"
$record
"
==
*
"
$txtvalue
"
*
&&
"
$record
"
==
*
"TXT"
*
]]
;
then
if
[[
"
$record
"
==
*
"
$txtvalue
"
*
&&
"
$record
"
==
*
"TXT"
*
]]
;
then
_info
"Deleting record:
$record
"
record_id
=
`
echo
$record
|
cut
-d
","
-f
1 |
grep
"record_id"
|
cut
-d
":"
-f
2
`
record_id
=
`
echo
$record
|
cut
-d
","
-f
1 |
grep
"record_id"
|
cut
-d
":"
-f
2
`
_info
"Deleting record
$record
"
if
[[
$record_id
-gt
0
]]
;
then
if
[[
$record_id
-gt
0
]]
;
then
...
@@ -198,7 +198,7 @@ _simply_delete_record() {
...
@@ -198,7 +198,7 @@ _simply_delete_record() {
sub_domain
=
$2
sub_domain
=
$2
record_id
=
$3
record_id
=
$3
_debug
"Delete record with id
$record_id
"
_debug
record_id
"Delete record with id
$record_id
"
if
!
_simply_rest DELETE
"my/products/
$domain
/dns/records/
$record_id
"
;
then
if
!
_simply_rest DELETE
"my/products/
$domain
/dns/records/
$record_id
"
;
then
_err
"Deleting record not successfull!"
_err
"Deleting record not successfull!"
...
@@ -213,9 +213,9 @@ _simply_rest() {
...
@@ -213,9 +213,9 @@ _simply_rest() {
ep
=
"
$2
"
ep
=
"
$2
"
data
=
"
$3
"
data
=
"
$3
"
_debug
"D
ata
:
$data
"
_debug
2 d
ata
"
$data
"
_debug
"Methodcall:
$ep
"
_debug
2 ep
"
$ep
"
_debug
"Call type:
$m
"
_debug
2 m
"
$m
"
export
_H1
=
"Content-Type: application/json"
export
_H1
=
"Content-Type: application/json"
...
...
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