|
|
@ -120,7 +120,7 @@ _get_root() { |
|
|
if ! _ultra_rest GET "zones"; then |
|
|
if ! _ultra_rest GET "zones"; then |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
if _contains "${response}" "${h}." > /dev/null; then |
|
|
|
|
|
|
|
|
if _contains "${response}" "${h}." >/dev/null; then |
|
|
_domain_id=$(echo "$response" | _egrep_o "${h}") |
|
|
_domain_id=$(echo "$response" | _egrep_o "${h}") |
|
|
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) |
|
|
|