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

880 by Sebastien Bacher
* debian/systemd, debian/update-notifier.install,links,crash:
1
#!/bin/sh
2
set -e
3
938 by Didier Roche
Ensure that when we move to systemd user session, we don't regress
4
# if whoopsie in never report mode, don't show anything.
5
which whoopsie
6
has_whoopsie=$?
7
systemctl -q is-enabled whoopsie
8
whoopsie_enabled=$?
9
if [ $has_whoopsie -eq 0 -a $whoopsie_enabled -ne 0 ]; then
10
    exit 0
11
fi
12
880 by Sebastien Bacher
* debian/systemd, debian/update-notifier.install,links,crash:
13
if /usr/share/apport/apport-checkreports; then
14
    /usr/share/apport/apport-gtk
15
else
16
    if /usr/share/apport/apport-checkreports --system; then
17
        if groups | grep -qE "sudo|admin" ; then
18
            /usr/lib/update-notifier/system-crash-notification
19
        fi
20
    fi
21
fi
22