~brian-murray/apport/xenial-snap

« back to all changes in this revision

Viewing changes to bin/service

  • Committer: Brian Murray
  • Date: 2017-05-01 22:52:35 UTC
  • Revision ID: brian@canonical.com-20170501225235-h5thcp50cs36krup
bin/service: copy over apport package hooks from the system to the snap's directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        [ -e /var/snap/apport/common/crash ] || mkdir -p /var/snap/apport/common/crash
35
35
        # 2017-02-22 Why?
36
36
        #chmod 1777 /var/crash
 
37
        if [ -e /usr/share/apport/package-hooks ]; then
 
38
            cp -a /usr/share/apport/package-hooks/* /snap/apport/current/share/apport/
 
39
        fi
37
40
 
38
41
        # 2017-02-22 not sure about this
39
42
        # check for kernel crash dump, convert it to apport report