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.
This commit is contained in:
cmstew 2017-08-10 11:43:04 -06:00 committed by GitHub
commit a2e57fd199

View file

@ -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