|
|
|
@ -88,16 +88,31 @@ Install_App(){ |
|
|
|
|
HTTP_PREFIX="https://ghproxy.com/" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# DL GeoLite Data |
|
|
|
|
TAG=2023.08.10 |
|
|
|
|
# download GeoLite Data |
|
|
|
|
GeoLite2_TAG=2023.08.10 |
|
|
|
|
if [ ! -f $serverPath/op_waf/GeoLite2-City.mmdb ];then |
|
|
|
|
wget --no-check-certificate -O $serverPath/op_waf/GeoLite2-City.mmdb ${HTTP_PREFIX}github.com/P3TERX/GeoLite.mmdb/releases/download/${TAG}/GeoLite2-City.mmdb |
|
|
|
|
wget --no-check-certificate -O $serverPath/op_waf/GeoLite2-City.mmdb ${HTTP_PREFIX}github.com/P3TERX/GeoLite.mmdb/releases/download/${GeoLite2_TAG}/GeoLite2-City.mmdb |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ ! -f $serverPath/op_waf/GeoLite2-Country.mmdb ];then |
|
|
|
|
wget --no-check-certificate -O $serverPath/op_waf/GeoLite2-Country.mmdb ${HTTP_PREFIX}github.com/P3TERX/GeoLite.mmdb/releases/download/${TAG}/GeoLite2-Country.mmdb |
|
|
|
|
wget --no-check-certificate -O $serverPath/op_waf/GeoLite2-Country.mmdb ${HTTP_PREFIX}github.com/P3TERX/GeoLite.mmdb/releases/download/${GeoLite2_TAG}/GeoLite2-Country.mmdb |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
libmaxminddb_ver='1.7.1' |
|
|
|
|
if [ ! -f $serverPath/op_waf/waf/ff.so ];then |
|
|
|
|
libmaxminddb_local_path=$serverPath/source/op_waf/libmaxminddb-${libmaxminddb_ver}.tar.gz |
|
|
|
|
libmaxminddb_url_path=${HTTP_PREFIX}github.com/maxmind/libmaxminddb/releases/download/${libmaxminddb_ver}/libmaxminddb-${libmaxminddb_ver}.tar.gz |
|
|
|
|
if [ ! -f ${libmaxminddb_local_path} ]; then |
|
|
|
|
wget --no-check-certificate -O ${libmaxminddb_local_path} ${libmaxminddb_url_path} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
cd $serverPath/source/op_waf && tar -zxvf ${libmaxminddb_local_path} && \ |
|
|
|
|
cd $serverPath/source/op_waf/libmaxminddb-${libmaxminddb_ver} && \ |
|
|
|
|
./configure --prefix=$serverPath/op_waf/waf/mmdb && make && make install |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "${version}" > $serverPath/op_waf/version.pl |
|
|
|
|
echo 'install ok' > $install_tmp |
|
|
|
|
|
|
|
|
|