增加二进制文件包含必要资源文件功能
This commit is contained in:
22
install.sh
22
install.sh
@@ -17,20 +17,20 @@ main()
|
||||
|
||||
if ! test -d $DENYIP_HOME; then
|
||||
mkdir -p $DENYIP_HOME
|
||||
mkdir -p $DENYIP_HOME/ip2region
|
||||
#mkdir -p $DENYIP_HOME/ip2region
|
||||
fi
|
||||
|
||||
if ! test -f ~/DenyIp/ip2region/ip2region.xdb; then
|
||||
wget -O $DENYIP_HOME/ip2region/ip2region.xdb https://git.aixiao.me/aixiao/DenyIP-go/raw/branch/main/ip2region/ip2region.xdb
|
||||
# if ! test -f ~/DenyIp/ip2region/ip2region.xdb; then
|
||||
# wget -O $DENYIP_HOME/ip2region/ip2region.xdb https://git.aixiao.me/aixiao/DenyIP-go/raw/branch/main/ip2region/ip2region.xdb
|
||||
|
||||
if test "$(md5sum $DENYIP_HOME/ip2region/ip2region.xdb | cut -d " " -f 1)" != "508c6b0257a02152b9d1b2b3792936e1"; then
|
||||
echo "ip2region.xdb md5 check fail"
|
||||
rm -rf $DENYIP_HOME
|
||||
exit 1
|
||||
else
|
||||
echo "ip2region.xdb md5 check success"
|
||||
fi
|
||||
fi
|
||||
# if test "$(md5sum $DENYIP_HOME/ip2region/ip2region.xdb | cut -d " " -f 1)" != "508c6b0257a02152b9d1b2b3792936e1"; then
|
||||
# echo "ip2region.xdb md5 check fail"
|
||||
# rm -rf $DENYIP_HOME
|
||||
# exit 1
|
||||
# else
|
||||
# echo "ip2region.xdb md5 check success"
|
||||
# fi
|
||||
# fi
|
||||
|
||||
if ! test -f ~/DenyIp/denyip; then
|
||||
wget -O $DENYIP_HOME/denyip https://git.aixiao.me/aixiao/DenyIP-go/raw/branch/main/denyip
|
||||
|
||||
Reference in New Issue
Block a user