Aha!

I have a much better way of doing this..

No need for a cronjob.

In the update motd script:
  if upgrade-available cache file is populated, print it
  else if it's available but empty, check its timestamp, and if it's older than 
1 day old, update the cache file in the background
  else if it doesn't exist, update it in the background

Profit!  I'm going to go ahead and commit that version now.  I'll wait
for Michael to release it though.

-- 
update-manager update-motd scripts delays login when the network is firewalled
https://bugs.launchpad.net/bugs/522452
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to