ip_lists/update.sh

14 lines
237 B
Bash
Executable File

#!/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
echo ""