update update.sh
This commit is contained in:
parent
cf3fc7c347
commit
47a51c431d
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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
6
update.sh
Normal file → Executable 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"
|
||||
|
|
Loading…
Reference in a new issue