Skip to content

Commit 5ab9fc5

Browse files
authored
Avoid user stats for the user that is not created from Vesta
1 parent 21dd9fa commit 5ab9fc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-update-user-stats

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ TOTAL_USERS=0
6767

6868
# Updating user stats
6969
for user in $user_list; do
70+
if [ ! -f "$VESTA/data/users/$user/user.conf" ]; then
71+
continue;
72+
fi
7073
USER_DATA=$VESTA/data/users/$user
7174
source $USER_DATA/user.conf
7275
next_month=$(date +'%m/01/%y' -d '+ 1 month')

0 commit comments

Comments
 (0)