Update update.sh

This commit is contained in:
kapsi 2023-03-09 09:08:23 +00:00
parent c7be0a70e9
commit 9ce19984f3
1 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,13 @@
pushd ~/ip_lists/
#!/bin/bash
echo "Starting"
date
cd ~/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
echo ""