ip_lists/update.sh

14 lines
237 B
Bash
Raw Permalink Normal View History

2023-03-09 11:08:23 +02:00
#!/bin/bash
echo "Starting"
date
cd ~/ip_lists/
2023-03-09 09:57:05 +02:00
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
2023-03-09 11:08:23 +02:00
echo ""