From a2e57fd1997b01a31901f78a072cbee32a89e0b1 Mon Sep 17 00:00:00 2001 From: cmstew Date: Thu, 10 Aug 2017 11:43:04 -0600 Subject: [PATCH] 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. --- bin/v-sync-dns-cluster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-sync-dns-cluster b/bin/v-sync-dns-cluster index 308d3329..e10e5228 100755 --- a/bin/v-sync-dns-cluster +++ b/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