2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #7146 from gurevichmark/syslog_comment

Prevent comment character removal from /etc/rsyslog.conf
This commit is contained in:
besawn 2022-04-20 13:57:15 -04:00 committed by GitHub
commit c03122ebdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,6 +273,7 @@ config_rsyslog_V8()
[ -f "$conf_file" ] && sed -i '/#\$ModLoad \+imudp\|imtcp\|imudp.so\|imtcp.so/s/^#//;
/#\$InputTCPServerRun\|UDPServerRun.*/s/^#//' $conf_file
[ -f "$conf_file" ] && sed -i '/mtcp.html/s/^/#/' $conf_file
[ -f "/etc/rsyslog.d/xcat-cluster.conf" ] && rm -f "/etc/rsyslog.d/xcat-cluster.conf" ;
[ -f "/etc/rsyslog.d/xcat-compute.conf" ] && rm -f "/etc/rsyslog.d/xcat-compute.conf" ;