Skip to content

Commit a2e57fd

Browse files
authored
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.
1 parent 0e8b482 commit a2e57fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-sync-dns-cluster

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ for cluster in $hosts; do
4949
check_result $? "$HOST connection failed" $E_CONNECT
5050

5151
# Syncing user domains
52-
user_list=$(ls $VESTA/data/users |grep -v "dns-cluster" |grep -v "history.log")
52+
user_list=$(ls -d $VESTA/data/users/*/ | sed "s#$VESTA/data/users/##" | sed s"/.$//")
5353
for user in $user_list; do
5454
for str in $(cat $VESTA/data/users/$user/dns.conf); do
5555

0 commit comments

Comments
 (0)