From dd6659f0a1493bec475b05ae1a6f67495d4aa7d4 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 26 Jul 2022 23:49:16 +0800 Subject: [PATCH] Update install.sh --- plugins/webstats/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/webstats/install.sh b/plugins/webstats/install.sh index 777a579df..ab58ad0a0 100755 --- a/plugins/webstats/install.sh +++ b/plugins/webstats/install.sh @@ -80,6 +80,14 @@ Install_App() cp -rf ${DEFAULT_DIR}/lsqlite3.so $serverPath/webstats/lua/lsqlite3.so fi + + if [ ! -f $serverPath/webstats/GeoLite2-City.mmdb ];then + pip install geoip2 + wget --no-check-certificate -O $serverPath/webstats/GeoLite2-City.mmdb https://git.io/GeoLite2-City.mmdb + fi + + # GeoLite2-Country.mmdb + echo "${VERSION}" > $serverPath/webstats/version.pl echo '安装完成' > $install_tmp