zapret/ipset/get_config.sh

11 lines
236 B
Bash
Raw Normal View History

2021-03-04 11:30:38 +00:00
#!/bin/sh
# run script specified in config
IPSET_DIR="$(dirname "$0")"
IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
. "$IPSET_DIR/../config"
2022-06-18 12:43:15 +00:00
[ -z "$GETLIST" ] && GETLIST=get_ipban.sh
2021-03-04 11:30:38 +00:00
[ -x "$IPSET_DIR/$GETLIST" ] && exec "$IPSET_DIR/$GETLIST"