Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
kiwi
:
Appliance
>
dracut
> 0129-fixup-No-such-file-or-directory-errors-when-module-i.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0129-fixup-No-such-file-or-directory-errors-when-module-i.patch of Package dracut
From f40870760a8245e60dd65f23ec84aca479298bb3 Mon Sep 17 00:00:00 2001 From: Brendan Germain <brendan.germain@nasdaqomx.com> Date: Wed, 25 May 2016 15:40:02 -0400 Subject: [PATCH] fixup No such file or directory errors when module is not configured --- modules.d/98syslog/rsyslogd-start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules.d/98syslog/rsyslogd-start.sh b/modules.d/98syslog/rsyslogd-start.sh index 25dfb16d..08b6fb24 100755 --- a/modules.d/98syslog/rsyslogd-start.sh +++ b/modules.d/98syslog/rsyslogd-start.sh @@ -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