pve-manager/debian/prerm
Thomas Lamprecht ca7fa064d3 b/prerm: cleanup cruft from prerm helper
we actually want to keep this for now as else we get the
autogenerated systemd helper code here which stops all services from
this package before upgrading, which we really really do not want
(kills API connections, among other things)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:14:16 +01:00

25 lines
626 B
Bash
Executable File

#! /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) : ;;
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