#!/bin/sh set -e PACKAGE_NAME="lliurex-cloud" case "$1" in remove|purge|abort-install|disappear) #remove diversion owncloud apache2 config file ORIGINAL_FILE=$"/etc/apache2/conf.d/owncloud.conf" if [ ! -r "$NEW_FILE" ] ; then rm -f "$ORIGINAL_FILE" dpkg-divert --package $PACKAGE_NAME --rename --quiet --remove $ORIGINAL_FILE fi ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0