zapret/ipset/get_config.sh

11 lines
269 B
Bash
Raw Normal View History

2024-10-28 06:32:24 +00:00
#!/bin/sh
# run script specified in config
IPSET_DIR="$(dirname "$0")"
IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
2024-12-22 10:48:36 +00:00
[ -f "$IPSET_DIR/../config" ] && . "$IPSET_DIR/../config"
2024-10-28 06:32:24 +00:00
[ -z "$GETLIST" ] && GETLIST=get_ipban.sh
[ -x "$IPSET_DIR/$GETLIST" ] && exec "$IPSET_DIR/$GETLIST"