]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update dns_opnsense.sh
authorwacki4 <wacki4@gmail.com>
Sat, 16 Oct 2021 12:08:03 +0000 (14:08 +0200)
committerGitHub <noreply@github.com>
Sat, 16 Oct 2021 12:08:03 +0000 (14:08 +0200)
Update for opnsense regards to error in #3735

dnsapi/dns_opnsense.sh

index 069f6c328ad14c30c9a9ff2e097092aeac29b0a6..63723f5ad66074ca26c9ea884ef70df9182e2828 100755 (executable)
@@ -150,7 +150,7 @@ _get_root() {
       return 1
     fi
     _debug h "$h"
-    id=$(echo "$_domain_response" | _egrep_o "\"[^\"]*\":{\"enabled\":\"1\",\"type\":{\"master\":{\"value\":\"master\",\"selected\":1},\"slave\":{\"value\":\"slave\",\"selected\":0}},\"masterip\":\"[^\"]*\"(,\"allownotifyslave\":{\"\":{[^}]*}},|,)\"domainname\":\"${h}\"" | cut -d ':' -f 1 | cut -d '"' -f 2)
+    id=$(echo "$_domain_response" | _egrep_o "\"[^\"]*\":{\"enabled\":\"1\",\"type\":{\"master\":{\"value\":\"master\",\"selected\":1},\"slave\":{\"value\":\"slave\",\"selected\":0}},\"masterip\":{.*}(,\"allownotifyslave\":{\"\":{[^}]*}},|,)\"domainname\":\"${h}\"" | cut -d ':' -f 1 | cut -d '"' -f 2)
 
     if [ -n "$id" ]; then
       _debug id "$id"