update update.sh

This commit is contained in:
bgme 2024-04-06 16:17:31 +08:00
parent cf3fc7c347
commit 47a51c431d
2 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View file

@ -171,4 +171,5 @@ poetry.toml
# End of https://www.toptal.com/developers/gitignore/api/python
/.idea
/custom_proxy_hosts.json
/custom_proxy_hosts.json

6
update.sh Normal file → Executable file
View file

@ -2,7 +2,7 @@
cd /srv/app/gfw/
yq "" pac/config/custom.yaml > gfwlist-to-dnsmasq-rule/custom_proxy_hosts.json
yq "." pac/config/custom.yaml > gfwlist-to-dnsmasq-rule/custom_proxy_hosts.json
rsync --verbose gfwlist-to-dnsmasq-rule/{main.py,custom_proxy_hosts.json} root@192.168.10.1:/root/gfwlist-to-dnsmasq-rule
ssh root@192.168.10.1 "/usr/bin/python /root/gfwlist-to-dnsmasq-rule/main.py"
rsync --verbose gfwlist-to-dnsmasq-rule/{main.py,custom_proxy_hosts.json} root-openwrt.rel.bgme.org:/root/gfwlist-to-dnsmasq-rule
ssh root-openwrt.rel.bgme.org "/usr/bin/python /root/gfwlist-to-dnsmasq-rule/main.py"