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
9e073c95
Unverified
Commit
9e073c95
authored
Jan 12, 2024
by
laraveluser
Committed by
GitHub
Jan 12, 2024
Browse files
Update dns_limacity.sh
parent
ad5acb80
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_limacity.sh
View file @
9e073c95
...
...
@@ -51,7 +51,7 @@ dns_limacity_rm() {
if
!
_lima_get_domain_id
"
$fulldomain
"
;
then return
1
;
fi
for
recordId
in
$(
_get
"
${
APIBASE
}
/domains/
${
LIMACITY_DOMAINID
}
/records.json"
| _egrep_o
"{
\"
id
\"
:[0-9]*[^}]*,
\"
name
\"
:
\"
${
fulldomain
}
\"
"
| _egrep_o
"[0-9]*"
)
;
do
_post
""
"
https://www.lima-city.de/usercp
/domains/
${
LIMACITY_DOMAINID
}
/records/
${
recordId
}
"
""
"DELETE"
_post
""
"
${
APIBASE
}
/domains/
${
LIMACITY_DOMAINID
}
/records/
${
recordId
}
"
""
"DELETE"
done
return
0
...
...
@@ -66,7 +66,7 @@ _lima_get_domain_id() {
p
=
1
domains
=
$(
_get
"
${
APIBASE
}
/domains.json"
)
if
[
"
$(
echo
"
$domains
"
| _egrep_o
"
^
\{
\"
domains
\"
"
)
"
]
;
then
if
[
"
$(
echo
"
$domains
"
| _egrep_o
"
{.*
\"
domains
\"
"
)
"
]
;
then
response
=
"
$(
echo
"
$domains
"
|
tr
-d
"
\n
"
|
tr
'{'
"|"
|
sed
's/|/&{/g'
|
tr
"|"
"
\n
"
)
"
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
...
...
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