-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: stop dnf from overwriting motd on azure linux nodes if motd is enabled on the node #5355
Conversation
…nabled on the node
@@ -247,6 +247,9 @@ else | |||
fi | |||
|
|||
if [[ "${MESSAGE_OF_THE_DAY}" != "" ]]; then | |||
if isMarinerOrAzureLinux "$OS" && [ -f /etc/dnf/automatic.conf ]; then | |||
sed -i "s/emit_via = motd/emit_via = stdio/g" /etc/dnf/automatic.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does it go when stdio
is used ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context: https://dnf.readthedocs.io/en/latest/automatic.html
just to standard output, i believe this particualr part of dnf is triggered by a systemd unit so that would go into journald
No description provided.