浏览代码

default priority record for MX and SRV type

Serghey Rodin 13 年之前
父节点
当前提交
200f50829a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      bin/v-add-dns-domain-record

+ 3 - 0
bin/v-add-dns-domain-record

@@ -25,6 +25,9 @@ dvalue=$(echo "$dvalue" | tr '[:upper:]' '[:lower:]')
 priority=$6
 priority=$6
 id=$7
 id=$7
 restart=$8
 restart=$8
+if [ -z "$priority" ]; then
+    priority=10
+fi
 
 
 # Includes
 # Includes
 source $VESTA/conf/vesta.conf
 source $VESTA/conf/vesta.conf