fixup No such file or directory errors when module is not configured

master
Brendan Germain 2016-05-25 15:40:02 -04:00
parent 223547feab
commit b37b141ecc
1 changed files with 4 additions and 4 deletions

View File

@ -26,11 +26,11 @@ rsyslog_config() {
#echo "*.* /tmp/syslog"
}

read type < /tmp/syslog.type
read server < /tmp/syslog.server
read filters < /tmp/syslog.filters
[ -f /tmp/syslog.type ] && read type < /tmp/syslog.type
[ -f /tmp/syslog.server ] && read server < /tmp/syslog.server
[ -f /tmp/syslog.filters ] && read filters < /tmp/syslog.filters
[ -z "$filters" ] && filters="kern.*"
read conf < /tmp/syslog.conf
[ -f /tmp/syslog.conf ] && read conf < /tmp/syslog.conf
[ -z "$conf" ] && conf="/etc/rsyslog.conf" && echo "$conf" > /tmp/syslog.conf

if [ $type == "rsyslogd" ]; then