Browse Source

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 years ago
parent
commit
a2e57fd199
1 changed files with 1 additions and 1 deletions
  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
     check_result $? "$HOST connection failed" $E_CONNECT
 
 
     # Syncing user domains
     # 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 user in $user_list; do
         for str in $(cat $VESTA/data/users/$user/dns.conf); do
         for str in $(cat $VESTA/data/users/$user/dns.conf); do