Update dns_la.sh
Modify for api update
This commit is contained in:
parent
b8447fcab8
commit
5712546380
@ -118,7 +118,7 @@ _get_root() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if _contains "$response" '"domainid":'; then
|
if _contains "$response" '"domainid":'; then
|
||||||
_domain_id=$(printf "%s" "$response" | grep '"domainid":' | cut -d : -f 2 | cut -d , -f 1 | tr -d '\r' | tr -d '\n')
|
_domain_id=$(printf "%s" "$response" | grep '"domainid":' | cut -d : -f 10 | cut -d , -f 1 | tr -d '\r' | tr -d '\n')
|
||||||
if [ "$_domain_id" ]; then
|
if [ "$_domain_id" ]; then
|
||||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
||||||
_domain="$h"
|
_domain="$h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user