~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to debian/upgrade-notifier.cron.daily

  • Committer: mvo
  • Date: 2004-11-03 21:11:42 UTC
  • Revision ID: gustavo@niemeyer.net-20041103211142-13ae36f05465ce14
* debian/control,upgrade-notifier.cron.daily,rules: added cron-job
* src/upgrade-notifier.c,data/upgrade-app: use the system bus now 
                     (so that the cron job can send messages too)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# upgrade-notifier cron daily, will do a apt-get update
 
4
 
 
5
set -e
 
6
 
 
7
if [ -x /usr/bin/upgrade-notifier ]; then
 
8
    if /usr/bin/apt-get update 2>&1 >/dev/null; then
 
9
        dbus-send --system / app.apt.dbus.updated boolean:true
 
10
        #touch /var/lib/apt/lists/update-stamp
 
11
    fi
 
12
fi