From 47a51c431dfb7257db8700e7b9c3361642d08962 Mon Sep 17 00:00:00 2001 From: bgme <i@bgme.me> Date: Sat, 6 Apr 2024 16:17:31 +0800 Subject: [PATCH] update update.sh --- .gitignore | 3 ++- update.sh | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 update.sh diff --git a/.gitignore b/.gitignore index d2d4218..b946ebd 100644 --- a/.gitignore +++ b/.gitignore @@ -171,4 +171,5 @@ poetry.toml # End of https://www.toptal.com/developers/gitignore/api/python /.idea -/custom_proxy_hosts.json \ No newline at end of file +/custom_proxy_hosts.json + diff --git a/update.sh b/update.sh old mode 100644 new mode 100755 index 5855257..57de546 --- a/update.sh +++ b/update.sh @@ -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" \ No newline at end of file +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"