Skip to content

Commit

Permalink
Only match on start of the line for module()
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Nov 13, 2023
1 parent d0bd096 commit f217076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpm_spec/subpackages/manageiq-appliance
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fi

# Disable rsyslog duplicating systemd-journal output
# This will comment out the multi-line module load from /etc/rsyslog.conf
sed -i '/module(load="imjournal"/, /StateFile="imjournal.state")/ s|^|#|' %{_sysconfdir}/rsyslog.conf
sed -i '/^module(load="imjournal"/, /StateFile="imjournal.state")/ s|^|#|' %{_sysconfdir}/rsyslog.conf
if systemctl is-active --quiet rsyslog; then
systemctl restart rsyslog
fi
Expand Down

0 comments on commit f217076

Please sign in to comment.