#!/bin/sh # prerm script for landscape-common # # 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) rm -f /etc/update-motd.d/50-landscape-sysinfo 2>/dev/null || true /usr/sbin/update-motd 2>/dev/null || true rm -f /etc/profile.d/landscape-sysinfo.sh 2>/dev/null || true ;; 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. # Automatically added by dh_python2: if which pyclean >/dev/null 2>&1; then pyclean -p landscape-common else dpkg -L landscape-common | grep \.py$ | while read file do rm -f "${file}"[co] >/dev/null done fi # End automatically added section exit 0