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 fi
# https://github.com/P3TERX/GeoLite.mmdb # https://github.com/P3TERX/GeoLite.mmdb
# pip install geoip2 pip install geoip2
# if [ ! -f $serverPath/webstats/GeoLite2-City.mmdb ];then 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 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 fi
# 缓存数据 # 缓存数据
if [ ! -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then # 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 # 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 # fi
if [ -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then # if [ -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then
cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb # cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb
fi # fi
echo "${VERSION}" > $serverPath/webstats/version.pl echo "${VERSION}" > $serverPath/webstats/version.pl
echo '安装完成' > $install_tmp echo '安装完成' > $install_tmp

Loading…
Cancel
Save