aboutsummaryrefslogtreecommitdiff
path: root/network/fail2ban/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/fail2ban/doinst.sh')
-rw-r--r--network/fail2ban/doinst.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/network/fail2ban/doinst.sh b/network/fail2ban/doinst.sh
index de511378bfbcf..485e843f8ea33 100644
--- a/network/fail2ban/doinst.sh
+++ b/network/fail2ban/doinst.sh
@@ -18,5 +18,10 @@ if [ -e etc/rc.d/rc.fail2ban ]; then
mv etc/rc.d/rc.fail2ban.new.incoming etc/rc.d/rc.fail2ban.new
fi
+# make directory for socket and pid file
+if [ ! -d var/run/fail2ban ]; then
+ mkdir -p var/run/fail2ban
+fi
+
config etc/rc.d/rc.fail2ban.new
config etc/logrotate.d/fail2ban.new