2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

issue 1245, add the missing $ in the regular expression

This commit is contained in:
WangXiaoPeng
2016-07-05 22:58:01 -04:00
parent e6b805de52
commit d1e63367f5

View File

@@ -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