Browse Source

First jq rework - 3. redo

pull/3728/head
Bjarne Saltbaek 3 years ago
parent
commit
608547c62c
  1. 2
      dnsapi/dns_cpanel.sh

2
dnsapi/dns_cpanel.sh

@ -115,7 +115,7 @@ _myget() {
_get_root() {
_myget 'json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzones'
_domains=$(echo "$_result" | cut -d ':' -f9 | sed 's/"//g' | sed 's/{//g' )
_domains=$(echo "$_result" | cut -d ':' -f9 | sed 's/"//g' | sed 's/{//g')
_debug "_result is: $_result"
_debug "_domains is: $_domains"
if [ -z "$_domains" ]; then

Loading…
Cancel
Save