tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

preinst.in (740B)


      1 #!/bin/sh -e
      2 
      3 if [ ${PKG_NAME} = firefox-esr ]; then
      4     if [ "$$1" = "upgrade" ] || [ "$$1" = "install" ] ; then
      5         dpkg-divert --package firefox-esr --divert /usr/bin/firefox.real --rename /usr/bin/firefox
      6     fi
      7 fi
      8 
      9 # Canonical shipped an AppArmor configuration via that file until 20.04 release
     10 # but unfortunately there was no removal of it handled in the package.
     11 # Mozilla Debian package "firefox" will thus inherit this rule and it may break
     12 # some features, cf bug 1918003.
     13 #
     14 # The correct AppArmor configuration for that package lives at
     15 # /etc/apparmor.d/firefox, and properly covers all the alternatives.
     16 if [ ${PKG_NAME} = firefox ] ; then
     17   dpkg-maintscript-helper rm_conffile /etc/apparmor.d/usr.bin.firefox -- "$$@"
     18 fi