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

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

Copy trusty code

File size: 402 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
9if [ -f ${ORIG_FILE}.real ] ; then
10        rm /etc/apt/apt.conf.d/50unattended-upgrades 
11        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
12fi
13
14# Other Stuff #
15
16#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.