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
7b7c834b
Unverified
Commit
7b7c834b
authored
Jan 12, 2024
by
laraveluser
Committed by
GitHub
Jan 12, 2024
Browse files
Update dns_limacity.sh
parent
42827be7
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_limacity.sh
View file @
7b7c834b
...
@@ -65,9 +65,9 @@ _lima_get_domain_id() {
...
@@ -65,9 +65,9 @@ _lima_get_domain_id() {
i
=
2
i
=
2
p
=
1
p
=
1
respo
ns
e
=
$(
_get
"
${
APIBASE
}
/domains.json"
)
domai
ns
=
$(
_get
"
${
APIBASE
}
/domains.json"
)
if
"
$response
"
;
then
if
[
"
$(
echo
"
$domains
"
| _egrep_o
"^
\{\"
domains
\"
"
)
"
]
;
then
response
=
"
$(
echo
"
$
respo
ns
e
"
|
tr
-d
"
\n
"
|
tr
'{'
"|"
|
sed
's/|/&{/g'
|
tr
"|"
"
\n
"
)
"
response
=
"
$(
echo
"
$
domai
ns
"
|
tr
-d
"
\n
"
|
tr
'{'
"|"
|
sed
's/|/&{/g'
|
tr
"|"
"
\n
"
)
"
while
true
;
do
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug h
"
$h
"
_debug h
"
$h
"
...
@@ -76,7 +76,7 @@ _lima_get_domain_id() {
...
@@ -76,7 +76,7 @@ _lima_get_domain_id() {
return
1
return
1
fi
fi
hostedzone
=
"
$(
echo
"
$response
"
| _egrep_o
"{.*
\"
domai
n
\"
:
\s
*
\"
$h
\"
.*}"
)
"
hostedzone
=
"
$(
echo
"
$response
"
| _egrep_o
"{.*
\"
unicode_fqd
n
\"
:
\s
*
\"
$h
\"
.*}"
)
"
if
[
"
$hostedzone
"
]
;
then
if
[
"
$hostedzone
"
]
;
then
LIMACITY_DOMAINID
=
$(
printf
"%s
\n
"
"
$hostedzone
"
| _egrep_o
"
\"
id
\"
:
\s
*[0-9]+"
| _head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\
)
LIMACITY_DOMAINID
=
$(
printf
"%s
\n
"
"
$hostedzone
"
| _egrep_o
"
\"
id
\"
:
\s
*[0-9]+"
| _head_n 1 |
cut
-d
:
-f
2 |
tr
-d
\
)
if
[
"
$LIMACITY_DOMAINID
"
]
;
then
if
[
"
$LIMACITY_DOMAINID
"
]
;
then
...
...
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