Made I.T 8 лет назад
Родитель
Сommit
3d6eb2c8ea
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      bin/v-add-dns-record

+ 5 - 3
bin/v-add-dns-record

@@ -45,10 +45,12 @@ if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
     fi
     fi
 fi
 fi
 
 
-dvalue=${dvalue//\"/}
+if [ $rtype != "CAA" ]; then
+    dvalue=${dvalue//\"/}
 
 
-if [[ "$dvalue" =~ [\;[:space:]] ]]; then
-    dvalue='"'"$dvalue"'"'
+    if [[ "$dvalue" =~ [\;[:space:]] ]]; then
+        dvalue='"'"$dvalue"'"'
+    fi
 fi
 fi
 
 
 # Additional argument formatting
 # Additional argument formatting