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

« back to all changes in this revision

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

  • Committer: mvo
  • Date: 2004-11-02 00:58:06 UTC
  • Revision ID: gustavo@niemeyer.net-20041102005806-9118e041eaa0ebc8
* inital checkin

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
 
#DEBHELPER#