Revision: 5332
http://xcat.svn.sourceforge.net/xcat/?rev=5332&view=rev
Author: lissav
Date: 2010-03-02 13:31:04 +0000 (Tue, 02 Mar 2010)
Log Message:
-----------
fix for defect 2957917
Modified Paths:
--------------
xcat-core/trunk/xCAT/postscripts/syslog
Modified: xcat-core/trunk/xCAT/postscripts/syslog
===================================================================
--- xcat-core/trunk/xCAT/postscripts/syslog 2010-03-02 11:36:06 UTC (rev 5331)
+++ xcat-core/trunk/xCAT/postscripts/syslog 2010-03-02 13:31:04 UTC (rev 5332)
@@ -111,23 +111,23 @@
if [ -f /etc/xCATMN ]; then
#on MN: make the syslogd be able to receive remote logs
awk '{if($0 ~ /^SYSLOGD_OPTIONS=|^SYSLOGD_PARAMS=/) {
- if ($0 !~ /-r/) {sub(/\"$/, " -r\"", $0)}
- if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/\"$/, " -m 0\"", $0)}
+ if ($0 !~ /-r/) {sub(/-/, "-r -", $0)}
+ if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/-/, "-m 0 -", $0)}
print $0}
else { print $0}}' $sysconfig > $sysconfig.tmp
else
if [ $isSN -eq 1 ]; then
#on SN: make the syslog be able to receive and forward remote logs
awk '{if($0 ~ /^SYSLOGD_OPTIONS=|^SYSLOGD_PARAMS=/) {
- if ($0 !~ /-r/) {sub(/\"$/, " -r\"", $0)}
- if ($0 !~ /-h/) {sub(/\"$/, " -h\"", $0)}
- if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/\"$/, " -m 0\"", $0)}
+ if ($0 !~ /-r/) {sub(/-/, "-r -", $0)}
+ if ($0 !~ /-h/) {sub(/-/, "-h -", $0)}
+ if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/-/, "-m 0 -", $0)}
print $0}
else { print $0}}' $sysconfig > $sysconfig.tmp
else
##turn off the time marker on all
awk '{if($0 ~ /^SYSLOGD_OPTIONS=|^SYSLOGD_PARAMS=/) {
- if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/\"$/, " -m 0\"", $0)}
+ if (($0 !~ /-m0/) && ($0 !~/-m 0/)) { sub(/-/, "-m 0 -", $0)}
print $0}
else {print $0}}' $sysconfig > $sysconfig.tmp
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|