mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
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:
parent
0e8b482ae2
commit
a2e57fd199
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue