瀏覽代碼

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

dpeca 7 年之前
父節點
當前提交
5ab9fc5f4a
共有 1 個文件被更改,包括 3 次插入0 次删除
  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
 # Updating user stats
 for user in $user_list; do
 for user in $user_list; do
+    if [ ! -f "$VESTA/data/users/$user/user.conf" ]; then
+        continue;
+    fi
     USER_DATA=$VESTA/data/users/$user
     USER_DATA=$VESTA/data/users/$user
     source $USER_DATA/user.conf
     source $USER_DATA/user.conf
     next_month=$(date +'%m/01/%y' -d '+ 1 month')
     next_month=$(date +'%m/01/%y' -d '+ 1 month')