From 9c582259be4b88532ebe20fd44076bef043a6926 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Jan 2016 15:17:35 +0530 Subject: [PATCH] ... --- setup/plugins_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/plugins_mirror.py b/setup/plugins_mirror.py index f778fcae01..dcf602c3ab 100644 --- a/setup/plugins_mirror.py +++ b/setup/plugins_mirror.py @@ -495,7 +495,7 @@ def singleinstance(): def update_stats(): log = olog = 'stats.log' - if not os.path.exists(log): + if os.geteuid() != 0 or not os.path.exists(log): return {} stats = {} if IS_PRODUCTION: