Add update script

This commit is contained in:
kapsi 2023-03-09 07:57:05 +00:00
parent 12beace565
commit 54000e6309
1 changed files with 8 additions and 0 deletions

8
update.sh Executable file
View File

@ -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