From d1e63367f5b4c39b9043fb4c3afc4d9cf5afea15 Mon Sep 17 00:00:00 2001 From: WangXiaoPeng Date: Tue, 5 Jul 2016 22:58:01 -0400 Subject: [PATCH] issue 1245, add the missing $ in the regular expression --- xCAT/postscripts/syslog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 35889640b..4c4006ae7 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -94,7 +94,7 @@ config_Rsyslog_C3() grep "$xCATSettingsOLD$" $conf_file 2>&1 1> /dev/null if [ $? -eq 0 ]; then #remove the older version syslog rule generated by xCAT - sed -i "/$xCATSettingsOLD/,+1 d" $2 + sed -i "/$xCATSettingsOLD$/,+1 d" $2 fi grep "$xCATSettingsSTART" $conf_file 2>&1 1> /dev/null