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

« back to all changes in this revision

Viewing changes to debian/update-notifier-common.postinst

  • Committer: Michael Vogt
  • Date: 2012-03-22 20:17:55 UTC
  • Revision ID: michael.vogt@ubuntu.com-20120322201755-v7kc7wlrtuax2p82
add empty test in preparation for more to come :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
# fixup /var/crash permissions (#449739)
 
6
if [ "$1" = configure ] && dpkg --compare-versions "$2" le-nl "0.89"; then
 
7
    if [ -d /var/crash ] && [ "$(stat -L -c '%a' /var/crash)" = "755" ]; then
 
8
        chmod 1777 /var/crash
 
9
    fi
 
10
fi
 
11
 
 
12
# Remove update-motd cpu-checker script
 
13
if [ "$1" = configure ] && dpkg --compare-versions "$2" le-nl "0.110.1ubuntu1"; then
 
14
    rm -f /etc/update-motd.d/20-cpu-checker
 
15
fi
 
16
 
 
17
if [ "$1" = triggered ]; then
 
18
        for trigger in $2; do
 
19
                case $trigger in
 
20
                        /usr/share/package-data-downloads)
 
21
                                /usr/lib/update-notifier/package-data-downloader
 
22
                                ;;
 
23
                esac
 
24
        done
 
25
        exit 0
 
26
fi
 
27
 
 
28
#DEBHELPER#