show-motd: Show MOTD from /etc/profile.d snippet in the first shell every day
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-motd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact] (Compared to LP: #1855089)
* Users are shown MOTD once a day but only in a shell started at a later hour than the one that showed MOTD the day before. This a bit confusing and harder to predict than showing MOTD in the first started shell every day. This fix implements the latter.
[Test Case]
* MOTD should be shown when touch refers to a date yesterday:
$ install show-motd
$ unset MOTD_SHOWN
$ touch -d 'now - 23 hours' $HOME/.motd_shown
$ bash -i /etc/profile.
...
$ touch -d 'now - 25 hours' $HOME/.motd_shown
$ bash -i /etc/profile.
...
$ touch -d 'now - 1 hour' $HOME/.motd_shown
$ bash -i /etc/profile.
...
[Regression Potential]
* Since this is an improvement of the new functionality only available in -proposed there is no extra regression potential compared to the change introducing the new functionality in LP: #1855089.
description: | updated |
This bug was fixed in the package update-motd - 3.6-0ubuntu5
---------------
update-motd (3.6-0ubuntu5) focal; urgency=medium
* show-motd: Show MOTD from /etc/profile.d snippet in the first shell every
day instead of showing it only after 24h is elapsed since showing it
last time. (LP: #1855918)
-- Balint Reczey <email address hidden> Tue, 10 Dec 2019 20:21:57 +0100