Просмотр исходного кода

Update v-sync-dns-cluster

Improved the script that gets the list of users. It now ignores any files that are in the $VESTA/data/users directory and only acknowledges folders.
cmstew 8 лет назад
Родитель
Сommit
a2e57fd199
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-sync-dns-cluster

+ 1 - 1
bin/v-sync-dns-cluster

@@ -49,7 +49,7 @@ for cluster in $hosts; do
     check_result $? "$HOST connection failed" $E_CONNECT
 
     # Syncing user domains
-    user_list=$(ls $VESTA/data/users |grep -v "dns-cluster" |grep -v "history.log")
+    user_list=$(ls -d $VESTA/data/users/*/ | sed "s#$VESTA/data/users/##" | sed s"/.$//")
     for user in $user_list; do
         for str in $(cat $VESTA/data/users/$user/dns.conf); do