pull/368/head
midoks 2 years ago
parent 0cb10cc926
commit 62ffc94b69
  1. 3
      plugins/webstats/install.sh
  2. 1
      plugins/webstats/lua/webstats_common.lua

@ -39,6 +39,7 @@ Install_App()
echo '正在安装脚本文件...' > $install_tmp
mkdir -p $serverPath/source/webstats
mkdir -p $serverPath/webstats
echo "${VERSION}" > $serverPath/webstats/version.pl
# 下载源码安装包
# curl -O $serverPath/source/webstats/lua-5.1.5.tar.gz https://www.lua.org/ftp/lua-5.1.5.tar.gz
@ -110,7 +111,7 @@ Install_App()
cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb
fi
echo "${VERSION}" > $serverPath/webstats/version.pl
echo '安装完成' > $install_tmp
cd $rootPath && python3 ${rootPath}/plugins/webstats/index.py start

@ -276,7 +276,6 @@ function _M.cron(self)
local url_stats = {}
local time_key = self:get_store_key()
local time_key_next = self:get_store_key_with_time(ngx.time()+3600)
for site_k, site_v in ipairs(sites) do
local input_sn = site_v["name"]

Loading…
Cancel
Save