2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-01 18:35:36 +00:00

Fix rsyslog.conf syntax error on RHEL 8 (#5950)

This commit is contained in:
Gᴏɴɢ Jie
2019-01-28 16:18:16 +08:00
committed by yangsong
parent 4e210e8f37
commit aafa9287d6

View File

@ -231,7 +231,7 @@ config_rsyslog_V8()
if [ -f "$conf_file" ]; then
#rhels7.4 ships rsyslogd 8.24.0, which does not ship remote.conf
#the relevant sections are included in rsyslog.conf
sed -i '/#\$ModLoad \+imudp\|imtcp\|imudp.so\|imtcp.so/s/^#//;
sed -i '/#\$ModLoad \+imudp\|#\$ModLoad \+imtcp\|imudp.so\|imtcp.so/s/^#//;
/#\$InputTCPServerRun\|UDPServerRun.*/s/^#//' $conf_file
#ubuntu16.04 ships rsyslog 8.16.0,which does not ship remote.conf