安装优化

pull/139/head
midoks 3 years ago
parent 61b1267e3a
commit 29b760ecb3
  1. 4
      plugins/webstats/index.py
  2. 5
      plugins/webstats/install.sh

@ -213,6 +213,10 @@ def initDreplace():
def start(): def start():
initDreplace() initDreplace()
if not mw.isAppleSystem():
mw.execShell("chown -R www:www " + getServerDir())
mw.restartWeb() mw.restartWeb()
return 'ok' return 'ok'

@ -82,7 +82,10 @@ Install_App()
echo "${VERSION}" > $serverPath/webstats/version.pl echo "${VERSION}" > $serverPath/webstats/version.pl
echo '安装完成' > $install_tmp echo '安装完成' > $install_tmp
# cd $rootPath && python3 ${rootPath}/plugins/webstats/index.py start
if [ "$sys_os" != "Darwin" ];then
cd $rootPath && python3 ${rootPath}/plugins/webstats/index.py start
fi
} }
Uninstall_App() Uninstall_App()

Loading…
Cancel
Save