view syslog2iptables.conf.make @ 64:4b147494fc64

Added tag stable-1-0-16 for changeset 60f59936fabb
author Carl Byington <carl@five-ten-sg.com>
date Sat, 19 Dec 2015 10:25:11 -0800
parents d80641be405b
children cc01f2caff37
line wrap: on
line source

#!/bin/bash

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

    for fn in /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