view syslog2iptables.conf.make @ 72:ea7b7a0d0039

RHEL7 systemd and /var/run on tmpfs
author Carl Byington <carl@five-ten-sg.com>
date Thu, 09 Feb 2017 12:58:21 -0800
parents d80641be405b
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/access*log; do
        if [ -f "$fn" ]; then
            echo "    file \"$fn\" {"
            cat syslog2iptables.conf.httpd
            echo "    };"
        fi
    done

    cat syslog2iptables.conf.bottom
) >syslog2iptables.conf