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

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

Copy trusty code

  • Property svn:executable set to *
File size: 734 bytes
Line 
1#!/bin/sh
2set -e
3
4# Template for diversions
5ORIG_FILE="/etc/apt/apt.conf.d/50unattended-upgrades"
6OUR_FILE="/usr/share/lliurex-dgti-conf-apt/50unattended-upgrades"
7OUR_PACKAGE="lliurex-dgti-conf-apt"
8
9case $1 in
10        remove|purge|abort-install|disappear)
11                if [ -f ${ORIG_FILE}.real ] ; then
12                        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
13                fi
14                ;;
15        *)
16                if [ -f ${ORIG_FILE}.real ] ; then
17                        echo "[ Alpha Tester ] "
18                         dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
19                fi
20               
21                echo "Nothing to do"
22                ;;
23esac
24
25# Other Stuff #
26
27#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.