#!/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_PATH="/usr/share/lliurex-dgti-conf-apt/" OUR_PACKAGE="lliurex-dgti-conf-apt" case $1 in configure) if dpkg-divert --package ${OUR_PACKAGE} --add --rename --divert ${OUR_FILE}.real ${ORIG_FILE} ; then ln -fs ${OUR_FILE} ${ORIG_FILE} else echo "Unabe to divert file ${ORIG_FILE}" fi ;; *) echo "Nothing to do" ;; esac # Other Stuff # #DEBHELPER#