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

Commits:

2 changed files:

Changes:

  • projects/linux-packages/config
    ... ... @@ -201,6 +201,10 @@ input_files:
    201 201
         content: "[% INCLUDE 'debian/docs.in' %]"
    
    202 202
         refresh_input: 1
    
    203 203
         enable: '[% c("var/build_deb_pkg") %]'
    
    204
    +  - filename: debian/postinst
    
    205
    +    content: "[% INCLUDE 'debian/postinst.in' %]"
    
    206
    +    refresh_input: 1
    
    207
    +    enable: '[% c("var/build_deb_pkg") %]'
    
    204 208
       - filename: debian/rules
    
    205 209
         content: "[% INCLUDE 'debian/rules.in' %]"
    
    206 210
         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