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

« back to all changes in this revision

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

  • Committer: Julian Andres Klode
  • Date: 2019-04-02 13:18:28 UTC
  • mfrom: (957.1.5 esm)
  • Revision ID: juliank@ubuntu.com-20190402131828-n7brmzl4gwgvshoe
* Rewrite and extend motd messaging (LP: #1822340)
* Count ESM security updates as security updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    fi
10
10
fi
11
11
 
 
12
if [ "$1" = triggered ]; then
 
13
        for trigger in $2; do
 
14
                case $trigger in
 
15
                        /usr/share/package-data-downloads)
 
16
                                /usr/lib/update-notifier/package-data-downloader
 
17
                                ;;
 
18
                esac
 
19
        done
 
20
        exit 0
 
21
fi
 
22
 
 
23
# Ensure permissions are correct, otherwise downloading sandboxing fails
 
24
chown -R _apt:root /var/lib/update-notifier/package-data-downloads/partial/
 
25
chmod 700 /var/lib/update-notifier/package-data-downloads/partial/
 
26
 
 
27
# Run this when configuring as well, since we may not be triggered at all
 
28
# depending on package unpack order.
 
29
/usr/lib/update-notifier/package-data-downloader
 
30
 
12
31
# 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
 
32
dpkg-maintscript-helper rm_conffile /etc/update-motd.d/20-cpu-checker \
 
33
        0.110.1ubuntu1 -- "$@"
16
34
 
17
35
#DEBHELPER#