]>
Commit | Line | Data |
---|---|---|
aff192e6 DM |
1 | #! /bin/sh |
2 | ||
3 | # Abort if any command returns an error value | |
4 | set -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 | ||
11 | package_name=pve-manager; | |
12 | ||
13 | case "$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;; | |
22 | esac | |
23 | ||
24 | exit 0 |