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: