#!/bin/sh # postrm script for php5-lliurex-compat # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package NOW=$(date +'%Y%m%d%m%s') case "$1" in purge|remove|disappear) if [ -d /etc/apache2-lliurex ]; then mv /etc/apache2-lliurex /etc/apache2-lliurex-${NOW} fi for l in /usr/local/sbin/a*-lliurex; do rm -f ${l} done if [ -d /var/log/apache2-lliurex ]; then mv /var/log/apache2-lliurex /var/log/apache2-lliurex-${NOW} fi if [ -f /etc/init.d/apache2-lliurex ]; then mv /etc/init.d/apache2-lliurex /etc/apache2-lliurex-${NOW}/apache2-lliurex.init-d fi if [ -f /etc/logrotate.d/apache2-lliurex ]; then mv /etc/logrotate.d/apache2-lliurex /etc/apache2-lliurex-${NOW}/apache2-lliurex.logrotate fi ;; upgrade|failed-upgrade|abort-install|abort-upgrade) ;; *) echo "postrm 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