source: lliurex-dgti-conf-apt/trunk/fuentes/debian/postinst @ 999

Last change on this file since 999 was 999, checked in by mabarracus, 3 years ago

Copy trusty code

  • Property svn:executable set to *
File size: 699 bytes
Line 
1#!/bin/sh
2set -e
3
4
5# Template for diversions
6ORIG_FILE="/etc/apt/apt.conf.d/50unattended-upgrades"
7OUR_FILE="/usr/share/lliurex-dgti-conf-apt/50unattended-upgrades"
8OUR_PATH="/usr/share/lliurex-dgti-conf-apt/"
9OUR_PACKAGE="lliurex-dgti-conf-apt"
10
11case $1 in
12
13        configure)
14                if dpkg-divert --package ${OUR_PACKAGE} --add  --rename --divert ${OUR_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        *)
22                echo "Nothing to do"
23                ;;
24esac
25
26# Other Stuff #
27
28#DEBHELPER#
29
Note: See TracBrowser for help on using the repository browser.