diff --git a/plugins/webstats/install.sh b/plugins/webstats/install.sh index 7649c8788..bc00521e8 100755 --- a/plugins/webstats/install.sh +++ b/plugins/webstats/install.sh @@ -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 diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index 2b4b9608f..beb50ec45 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -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"]