Browse Source
Merge pull request #4331 from arnebjarne/dns_cpanel_newserial_fix
Dns cpanel newserial fix
pull/4335/head
neil
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
dnsapi/dns_cpanel.sh
|
@ -139,8 +139,8 @@ _get_root() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_successful_update() { |
|
|
_successful_update() { |
|
|
if (echo "$_result" | grep -q 'newserial'); then return 0; fi |
|
|
|
|
|
return 1 |
|
|
|
|
|
|
|
|
if (echo "$_result" | _egrep_o 'data":\[[^]]*]' | grep -q '"newserial":null'); then return 1; fi |
|
|
|
|
|
return 0 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_findentry() { |
|
|
_findentry() { |
|
|