source: lliurex-dgti-conf-thunderbird/trunk/fuentes/debian/lliurex-dgti-conf-thunderbird-extensions-lock.postinst @ 1004

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

Copy trusty code

File size: 534 bytes
Line 
1#!/bin/sh
2set -e
3
4
5# LliureX diversions for Thunderbird Dgti
6ORIG_FILE="/usr/lib/thunderbird/defaults/pref/channel-prefs.js"
7OUR_FILE="/usr/lib/thunderbird/defaults/pref/channel-prefs-dgti.js"
8OUR_PACKAGE="lliurex-dgti-conf-thunderbird-extensions-lock"
9
10
11case $1 in
12
13        configure)
14                if dpkg-divert --package ${OUR_PACKAGE} --add  --rename  --divert ${ORIG_FILE}.real ${ORIG_FILE} ; then
15                        ln -fs ${OUR_FILE} ${ORIG_FILE}
16                else
17                        echo "Unabe to divert file ${ORIG_FILE}"
18                fi 
19                ;;
20        *)
21                echo "Nothing to do"
22                ;; 
23esac
24
25#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.