1
0
Fork 0
firefox/browser/installer/linux/app/debian/preinst.in
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

18 lines
740 B
Bash

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