source: lliurex-dgti-conf-firefox/trunk/fuentes/debian/lliurex-dgti-conf-firefox-common-settings.postinst @ 1000

Last change on this file since 1000 was 1000, checked in by mabarracus, 5 years ago

Copy trusty code

File size: 749 bytes
Line 
1#!/bin/sh
2set -e
3
4
5# LliureX diversions for Firefox
6ORIG_FILE="/etc/firefox/syspref.js"
7OUR_FILE="/etc/firefox/syspref-dgti.js"
8OUR_PACKAGE="lliurex-dgti-conf-firefox-common-settings"
9LLIUREX_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox.properties"
10SERVER_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox-dgti.properties"
11
12case $1 in
13
14        configure)
15                update-alternatives --install $LLIUREX_PROPERTIES lliurex-firefox $SERVER_PROPERTIES 60 
16                if dpkg-divert --package ${OUR_PACKAGE} --add  --rename  --divert ${ORIG_FILE}.real ${ORIG_FILE} ; then
17                        ln -fs ${OUR_FILE} ${ORIG_FILE}
18                else
19                        echo "Unabe to divert file ${ORIG_FILE}"
20                fi 
21                echo "Diverting..."
22                ;;
23        *)
24                echo "Nothing to do"
25                ;; 
26esac
27
28#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.