bad behavior - move from fail2ban to pure lua

This commit is contained in:
bunkerity
2021-05-13 16:21:51 +02:00
parent eb2d0d330d
commit 0b3ff6a9f4
27 changed files with 90 additions and 148 deletions

View File

@@ -1,19 +0,0 @@
#!/bin/sh
# load some functions
. /opt/entrypoint/utils.sh
logrotate -f /etc/logrotate.conf > /dev/null 2>&1
pkill -HUP rsyslogd
fail2ban-client flushlogs
if [ -f /tmp/nginx.pid ] ; then
/usr/sbin/nginx -s reload > /dev/null 2>&1
if [ "$?" -eq 0 ] ; then
job_log "[NGINX] successfull nginx reload after logrotate"
else
job_log "[NGINX] failed nginx reload after logrotate"
fi
fi