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

« back to all changes in this revision

Viewing changes to debian/update-notifier-crash

  • Committer: Balint Reczey
  • Date: 2020-06-11 18:46:02 UTC
  • Revision ID: balint.reczey@canonical.com-20200611184602-2rv1zan3xu723x2u
Moved to git at https://git.launchpad.net/update-notifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
set -e
3
 
 
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
 
 
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