From 54000e630910fc037a8230745b723f9a1bddf616 Mon Sep 17 00:00:00 2001 From: kapsi Date: Thu, 9 Mar 2023 07:57:05 +0000 Subject: [PATCH] Add update script --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 update.sh diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..c2650f2 --- /dev/null +++ b/update.sh @@ -0,0 +1,8 @@ +pushd ~/ip_lists/ +git pull +cat ~/domain_resolver/ips_out.txt ~/ip_lists/blocklist.txt | sort | uniq > ~/ip_lists/tmp +mv tmp blocklist.txt +git add blocklist.txt +git commit -m "Auto-update" +git push +popd