#!/bin/sh set -e # Template for diversions ORIG_FILE="/etc/apt/apt.conf.d/50unattended-upgrades" OUR_FILE="/usr/share/lliurex-dgti-conf-apt/50unattended-upgrades" OUR_PACKAGE="lliurex-dgti-conf-apt" case $1 in remove|purge|abort-install|disappear) if [ -f ${ORIG_FILE}.real ] ; then dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi ;; *) echo "Nothing to do" ;; esac # Other Stuff # #DEBHELPER#