Comment 32 for bug 659738

Revision history for this message
Tim Cutts (timc) wrote : Re: [Bug 659738] Re: Duplicate welcome message in motd (caused by postinst script creating motd.tail file)

On 9 Jun 2011, at 12:27, Michael Lueck wrote:

> How's progress getting this fixed in stable distribution? I just had to
> "sudo rm /etc/motd.tail" on Lucid servers again. So I guess doing so is
> not a one time manual fix. :-(

I use cfengine2 on our systems, and the following hideous runes are keeping it under control:

groups:
  ubuntu_lucid::
    have_motd_tail = ( FileExists("/etc/motd.tail") )
  have_motd_tail::
    broken_motd_tail = ( ReturnsZeroShell("/bin/grep -q ${quote}Welcome to Ubuntu!${quote} /etc/motd.tail") )

tidy:
  broken_motd_tail::
    /etc pat=motd.tail age=0

Regards,

Tim