From b3970326cd5f092f1242c69d4ed15dae281f06fb Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 28 Feb 2023 01:57:19 +0800 Subject: [PATCH] Update index.py --- plugins/webstats/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/webstats/index.py b/plugins/webstats/index.py index f8f51c8ad..45105ada2 100755 --- a/plugins/webstats/index.py +++ b/plugins/webstats/index.py @@ -265,6 +265,8 @@ def initDreplace(): loadLuaSiteFile() loadDebugLogFile() + if not mw.isAppleSystem(): + mw.execShell("chown -R www:www " + getServerDir()) return 'ok' @@ -279,9 +281,6 @@ def start(): import tool_task tool_task.createBgTask() - if not mw.isAppleSystem(): - mw.execShell("chown -R www:www " + getServerDir()) - # issues:326 luaRestart() return 'ok'