25 lines
626 B
Plaintext
Raw Normal View History

2011-08-23 07:40:22 +02:00
#! /bin/sh
# Abort if any command returns an error value
set -e
# This script is called as the first step in removing the package from
# the system. This includes cases where the user explicitly asked for
# the package to be removed, upgrade, automatic removal due to conflicts,
# and deconfiguration due to temporary removal of a depended-on package.
package_name=pve-manager;
case "$1" in
remove|deconfigure|failed-upgrade) : ;;
2011-08-23 07:40:22 +02:00
upgrade)
if [ -L /usr/doc/$package_name ]; then
rm -f /usr/doc/$package_name
fi
;;
*) echo "$0: didn't understand being called with \`$1'" 1>&2
exit 0;;
esac
exit 0