]> git.proxmox.com Git - pve-manager.git/blame - debian/prerm
update shipped appliance info index
[pve-manager.git] / debian / prerm
CommitLineData
aff192e6
DM
1#! /bin/sh
2
3# Abort if any command returns an error value
4set -e
5
6# This script is called as the first step in removing the package from
7# the system. This includes cases where the user explicitly asked for
8# the package to be removed, upgrade, automatic removal due to conflicts,
9# and deconfiguration due to temporary removal of a depended-on package.
10
11package_name=pve-manager;
12
13case "$1" in
ca7fa064 14 remove|deconfigure|failed-upgrade) : ;;
aff192e6 15 upgrade)
aff192e6
DM
16 if [ -L /usr/doc/$package_name ]; then
17 rm -f /usr/doc/$package_name
18 fi
aff192e6
DM
19 ;;
20 *) echo "$0: didn't understand being called with \`$1'" 1>&2
21 exit 0;;
22esac
23
24exit 0