From 5ab9fc5f4acda403d135707e67f8562dc3449695 Mon Sep 17 00:00:00 2001 From: dpeca Date: Sun, 28 Oct 2018 00:31:34 +0200 Subject: [PATCH] Avoid user stats for the user that is not created from Vesta --- bin/v-update-user-stats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/v-update-user-stats b/bin/v-update-user-stats index f6b5ff566..23854328d 100755 --- a/bin/v-update-user-stats +++ b/bin/v-update-user-stats @@ -67,6 +67,9 @@ TOTAL_USERS=0 # Updating user stats for user in $user_list; do + if [ ! -f "$VESTA/data/users/$user/user.conf" ]; then + continue; + fi USER_DATA=$VESTA/data/users/$user source $USER_DATA/user.conf next_month=$(date +'%m/01/%y' -d '+ 1 month')