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'