You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
308 B

#!/bin/bash
#
# Cron bot script to install baddies into an ipset set
#
#
cd $(dirname $0)
SET=DIDAFF
# Ensure the set exist; complain and fail otherwise
/sbin/ipset list $SET >/dev/null || exit 1
# Update the set from the DIDAFF database
./didaff list | /usr/bin/xargs -r -n1 /sbin/ipset add $SET -exist