Explorar o código

Avoid user stats for the user that is not created from Vesta

dpeca %!s(int64=7) %!d(string=hai) anos
pai
achega
5ab9fc5f4a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      bin/v-update-user-stats

+ 3 - 0
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')