tor-browser

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

postinst.in (1104B)


      1 #!/bin/sh -e
      2 
      3 if [ "$$1" = "configure" ] || [ "$$1" = "abort-upgrade" ] || [ "$$1" = "abort-remove" ] ; then
      4     update-alternatives --install /usr/bin/gnome-www-browser \
      5         gnome-www-browser /usr/bin/${PKG_NAME} 100 \
      6         --slave /usr/share/man/man1/gnome-www-browser.1.gz \
      7         gnome-www-browser.1.gz /usr/share/man/man1/${PKG_NAME}.1.gz
      8 
      9     update-alternatives --install /usr/bin/x-www-browser \
     10         x-www-browser /usr/bin/${PKG_NAME} 100 \
     11         --slave /usr/share/man/man1/x-www-browser.1.gz \
     12         x-www-browser.1.gz /usr/share/man/man1/${PKG_NAME}.1.gz
     13 fi
     14 
     15 # Canonical shipped an AppArmor configuration via that file until 20.04 release
     16 # but unfortunately there was no removal of it handled in the package.
     17 # Mozilla Debian package "firefox" will thus inherit this rule and it may break
     18 # some features, cf bug 1918003.
     19 #
     20 # The correct AppArmor configuration for that package lives at
     21 # /etc/apparmor.d/firefox, and properly covers all the alternatives.
     22 if [ ${PKG_NAME} = firefox ] ; then
     23   dpkg-maintscript-helper rm_conffile /etc/apparmor.d/usr.bin.firefox -- "$$@"
     24 fi