Jaap Marcus 3 лет назад
Родитель
Сommit
a67182506f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      bin/v-add-dns-record
  2. 1 1
      bin/v-change-dns-record

+ 1 - 1
bin/v-add-dns-record

@@ -73,7 +73,7 @@ if [ "$rtype" != "CAA" ]; then
     fi
     fi
 fi
 fi
 
 
-if [ $record = "@" ] && [ $rtype = "CNAME" ]; then
+if [ "$record" = "@" ] && [ "$rtype" = "CNAME" ]; then
     check_result $E_INVALID "CNAME on root is not allowed"
     check_result $E_INVALID "CNAME on root is not allowed"
 fi
 fi
 
 

+ 1 - 1
bin/v-change-dns-record

@@ -58,7 +58,7 @@ check_hestia_demo_mode
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-if [ $record = "@" ] && [ $rtype = "CNAME" ]; then
+if [ "$record" = "@" ] && [ "$rtype" = "CNAME" ]; then
     check_result $E_INVALID "CNAME on root is not allowed"
     check_result $E_INVALID "CNAME on root is not allowed"
 fi
 fi