view syslog2iptables.conf.make @ 82:384532d596c0 default tip

Added tag stable-1-0-19 for changeset cc01f2caff37
author Carl Byington <carl@five-ten-sg.com>
date Sun, 11 Feb 2024 12:06:36 -0800
parents cc01f2caff37
children
line wrap: on
line source

#!/bin/bash

(
    echo '// generated by syslog2iptables.conf.make'
    echo ''
    cat syslog2iptables.conf.top

    for fn in /var/log/httpd/error_log /var/log/httpd/access*log; do
        if [ -f "$fn" ]; then
            echo "    file \"$fn\" {"
            cat syslog2iptables.conf.httpd
            echo "    };"
        fi
    done

    cat syslog2iptables.conf.bottom
) >syslog2iptables.conf