Skip to content

Commit

Permalink
Update rsyslog_cron_logging for bootable containers
Browse files Browse the repository at this point in the history
Remediation of the rule `rsyslog_cron_logging` calls
`systemctl reload` which doesn't work in the bootable
container build environment and so we use the
`bash_not_bootc_build` macro to not run it there.
  • Loading branch information
matusmarhefka committed Nov 5, 2024
1 parent bf70996 commit 9c310a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ if ! grep -s "^\s*cron\.\*\s*/var/log/cron$" /etc/rsyslog.conf /etc/rsyslog.d/*.
echo "cron.* /var/log/cron" >> /etc/rsyslog.d/cron.conf
fi

systemctl restart rsyslog.service
if {{{ bash_not_bootc_build() }}} ; then
systemctl restart rsyslog.service
fi

0 comments on commit 9c310a3

Please sign in to comment.