#!/bin/sh # prerm script for lliurex-statistics # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) service analytics stop service auditd stop update-rc.d -f analytics remove update-rc.d -f auditd remove [ -f /etc/audit/auditd.conf ] && rm /etc/audit/auditd.conf dpkg-divert --package lliurex-statistics --rename --remove /etc/audit/auditd.conf [ -f /etc/default/auditd ] && rm /etc/default/auditd dpkg-divert --package lliurex-statistics --rename --remove /etc/default/auditd rm -f /etc/audit/rules.d/analytics.rules /etc/lliurex-analytics/status ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0