summaryrefslogtreecommitdiffstats
path: root/debian/browser.postinst.in
diff options
context:
space:
mode:
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#