morgan pushed to branch maint-14.0 at The Tor Project / Applications / tor-browser-build

Commits:

2 changed files:

Changes:

  • projects/linux-packages/config
    ... ... @@ -171,6 +171,10 @@ input_files:
    171 171
         content: "[% INCLUDE 'debian/docs.in' %]"
    
    172 172
         refresh_input: 1
    
    173 173
         enable: '[% c("var/build_deb_pkg") %]'
    
    174
    +  - filename: debian/postinst
    
    175
    +    content: "[% INCLUDE 'debian/postinst.in' %]"
    
    176
    +    refresh_input: 1
    
    177
    +    enable: '[% c("var/build_deb_pkg") %]'
    
    174 178
       - filename: debian/rules
    
    175 179
         content: "[% INCLUDE 'debian/rules.in' %]"
    
    176 180
         refresh_input: 1
    

  • projects/linux-packages/debian/postinst.in
    1
    +#!/bin/sh
    
    2
    +
    
    3
    +set -e
    
    4
    +
    
    5
    +case "$1" in
    
    6
    +    install|upgrade|configure)
    
    7
    +        # If abi 4.0 is not present, then remove the apparmor profile config
    
    8
    +        if [ ! -e /etc/apparmor.d/abi/4.0 ]; then
    
    9
    +            rm -f /etc/apparmor.d/[% c("var/system_pkg/pkg_name") %]
    
    10
    +        fi
    
    11
    +        ;;
    
    12
    +esac