/etc/update-motd.d/00-header is broken

Bug #510599 reported by H.-Dirk Schmitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
base-files (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: base-files

The file '/etc/update-motd.d/00-header' ends in the line:
[ -f /etc/motd.tail ] && cat /etc/motd.tail

If motd.tail isn't exisiting it will end in a return code <> 0, which is reported by run-parts like this:

Linux momo 2.6.31-18-generic #55-Ubuntu SMP Fri Jan 8 14:54:52 UTC 2010 x86_64
run-parts: /etc/update-motd.d//00-header exited with return code 1

Using the following code fixes the problem.
[ -f /etc/motd.tail ] && cat /etc/motd.tail | true

Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :
Revision history for this message
Daniel Richard G. (skunk) wrote :

/etc/update-motd.d/00-header now has the change you proposed, on my updated install of Lucid Beta1.

Changed in base-files (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.