source: firefox-esr.old/trunk/fuentes/debian/firefox-esr.postinst @ 6471

Last change on this file since 6471 was 6471, checked in by Juanma, 20 months ago

deprecated firefox-esr

File size: 785 bytes
Line 
1#!/bin/sh
2
3
4
5set -e
6
7# Firefox ESR
8ORIG_FILE="/usr/bin/firefox"
9OUR_FILE="/opt/firefox-esr/firefox"
10OUR_PACKAGE="firefox-esr"
11
12
13case $1 in
14        configure)
15        echo "postinst called with argument \`$1'" >&2
16                #Firefox link goes here
17#               if dpkg-divert --package ${OUR_PACKAGE} --add  --rename  --divert ${ORIG_FILE}.real ${ORIG_FILE} ; then
18#                       ln -fs ${OUR_FILE} ${ORIG_FILE}
19#             else
20#                     echo "Unabe to divert file ${ORIG_FILE}"
21#              fi
22        ;;
23
24        abort-upgrade|abort-remove|abort-deconfigure)
25                echo "postinst called with argument \`$1'" >&2
26                exit 1
27        ;;
28
29        *)
30                echo "postinst called with unknown argument \`$1'" >&2
31                exit 1
32        ;;
33esac
34
35
Note: See TracBrowser for help on using the repository browser.