Update install.sh

pull/216/head
midoks 3 years ago
parent 016dde04e7
commit d8047b43fa
  1. 21
      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

Loading…
Cancel
Save