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

« back to all changes in this revision

Viewing changes to debian/update-notifier-crash

  • Committer: dann frazier
  • Date: 2020-02-04 02:27:07 UTC
  • Revision ID: dannf@ubuntu.com-20200204022707-37vu1ltkpx2m2t5x
tests/test_motd.py: Fix cut & paste error in comment.

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