From d8047b43faf45cba7b3b06424919283cfbb8d9f6 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 22 Oct 2022 22:49:32 +0800 Subject: [PATCH] Update install.sh --- plugins/webstats/install.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/plugins/webstats/install.sh b/plugins/webstats/install.sh index 14c31e490..2741c9399 100755 --- a/plugins/webstats/install.sh +++ b/plugins/webstats/install.sh @@ -85,20 +85,19 @@ Install_App() fi # https://github.com/P3TERX/GeoLite.mmdb - # pip install geoip2 - # if [ ! -f $serverPath/webstats/GeoLite2-City.mmdb ];then - # wget --no-check-certificate -O $serverPath/webstats/GeoLite2-City.mmdb https://github.com/P3TERX/GeoLite.mmdb/releases/download/2022.10.16/GeoLite2-City.mmdb - # fi - + pip install geoip2 + if [ ! -f $serverPath/webstats/GeoLite2-City.mmdb ];then + wget --no-check-certificate -O $serverPath/webstats/GeoLite2-City.mmdb https://github.com/P3TERX/GeoLite.mmdb/releases/download/2022.10.16/GeoLite2-City.mmdb + fi # 缓存数据 - if [ ! -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then - wget --no-check-certificate -O $serverPath/source/webstats/GeoLite2-City.mmdb https://github.com/P3TERX/GeoLite.mmdb/releases/download/2022.10.16/GeoLite2-City.mmdb - fi + # if [ ! -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then + # wget --no-check-certificate -O $serverPath/source/webstats/GeoLite2-City.mmdb https://github.com/P3TERX/GeoLite.mmdb/releases/download/2022.10.16/GeoLite2-City.mmdb + # fi - if [ -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then - cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb - fi + # if [ -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then + # cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb + # fi echo "${VERSION}" > $serverPath/webstats/version.pl echo '安装完成' > $install_tmp