summaryrefslogtreecommitdiffstats
path: root/debian/browser.postinst.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:59 +0000
commit4619c1a0ffc127c8f645077f5c322663d8b9b2b3 (patch)
tree070869da410d51f1e532cfb680e493ef847523c7 /debian/browser.postinst.in
parentAdding upstream version 86.0.1. (diff)
downloadfirefox-4619c1a0ffc127c8f645077f5c322663d8b9b2b3.tar.xz
firefox-4619c1a0ffc127c8f645077f5c322663d8b9b2b3.zip
Adding debian version 86.0.1-1.debian/86.0.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/browser.postinst.in')
-rw-r--r--debian/browser.postinst.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/browser.postinst.in b/debian/browser.postinst.in
new file mode 100644
index 0000000000..083aa70412
--- /dev/null
+++ b/debian/browser.postinst.in
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
+ update-alternatives --install /usr/bin/x-www-browser \
+ x-www-browser /usr/bin/@browser@ 70 \
+ --slave /usr/share/man/man1/x-www-browser.1.gz \
+ x-www-browser.1.gz /usr/share/man/man1/@browser@.1.gz
+ update-alternatives --remove mozilla /usr/bin/@browser@
+ update-alternatives --install /usr/bin/gnome-www-browser \
+ gnome-www-browser /usr/bin/@browser@ 70 \
+ --slave /usr/share/man/man1/gnome-www-browser.1.gz \
+ gnome-www-browser.1.gz /usr/share/man/man1/@browser@.1.gz
+fi
+
+if [ "$1" = "configure" ] ; then
+ rm -rf /usr/lib/@browser@/updates
+fi
+
+#DEBHELPER#