pkg://nagios-text_1.3-cvs.20050402-2.sarge.2_hppa.deb:1003752/preinst
info downloads
#! /bin/sh
# preinst script for nagios
# This is to be removed after the new nagios packages hit sarge!
# Until then it has to remove a directory as we want to replace it with a symlink
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" le "2:1.3-0+pre" ; then
rm -rf /usr/share/doc/nagios-text
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
exit 0