diff --git a/root/etc/e-smith/events/actions/fail2ban-resume-logs b/root/etc/e-smith/events/actions/fail2ban-resume-logs index 07d7a04..7e0f292 100644 --- a/root/etc/e-smith/events/actions/fail2ban-resume-logs +++ b/root/etc/e-smith/events/actions/fail2ban-resume-logs @@ -6,6 +6,8 @@ if [ "$STATUS" != "enabled" ]; then fi sleep 1 +# Makes sure /var/log/httpd/error_log is not a dangling symlink +[ -e /var/log/httpd/error_log ] || touch /var/log/httpd/error_log for JAIL in http-overflows http-noscript http-scan http-auth; do /usr/bin/fail2ban-client status $JAIL > /dev/null 2>&1 if [ $? -eq 0 ]; then @@ -13,6 +15,7 @@ for JAIL in http-overflows http-noscript http-scan http-auth; do fi done +[ -e /var/log/secure ] || touch /var/log/secure for JAIL in pam-generic ftp; do /usr/bin/fail2ban-client status $JAIL > /dev/null 2>&1 if [ $? -eq 0 ]; then @@ -20,6 +23,7 @@ for JAIL in pam-generic ftp; do fi done +[ -e /var/log/messages ] || touch /var/log/messages for JAIL in lemonldap; do /usr/bin/fail2ban-client status $JAIL > /dev/null 2>&1 if [ $? -eq 0 ]; then