2019-04-04 16:22:37 +08:00
|
|
|
#!/bin/bash
|
2018-10-04 21:37:00 +08:00
|
|
|
|
|
|
|
source /etc/profile
|
|
|
|
|
2018-10-08 10:59:06 +08:00
|
|
|
cd $(cd "$(dirname "$0")";pwd)
|
|
|
|
echo pwd is: `pwd`
|
2018-10-10 09:23:35 +08:00
|
|
|
git pull
|
2018-10-08 10:59:06 +08:00
|
|
|
|
2018-10-04 21:37:00 +08:00
|
|
|
echo '开始下载 easylist1...'
|
|
|
|
wget -O easylistchina+easylist.txt https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
|
|
|
|
|
|
|
|
if [ $? -ne 0 ];then
|
|
|
|
echo '下载失败,请重试'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo '开始下载 easylist2...'
|
|
|
|
wget -O koolproxy.txt https://kprule.com/koolproxy.txt
|
|
|
|
|
|
|
|
if [ $? -ne 0 ];then
|
|
|
|
echo '下载失败,请重试'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-10-10 09:23:35 +08:00
|
|
|
/usr/local/php/bin/php make-addr.php
|
|
|
|
|
|
|
|
git add adblock-for-dnsmasq.conf
|
|
|
|
git commit -am "auto commit"
|
|
|
|
git push --force
|