buildsys: remove outdated preinst helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-03-12 14:14:07 +01:00 committed by Fabian Grünbichler
parent 3fde056435
commit 2b0cad0eca

32
debian/preinst vendored
View File

@ -1,32 +0,0 @@
#!/bin/sh
set -e
DAEMONS="pveproxy spiceproxy pvestatd pvedaemon"
case "$1" in
install|upgrade)
old_version=$2
if [ ! -e /proxmox_install_mode ]; then
if dpkg --compare-versions "$old_version" lt '3.3-9' ; then
echo "Detected old pve-manager version - using stop/start to restart daemons"
for i in ${DAEMONS}; do
if [ -e "/usr/bin/$i" ]; then
service $i stop
fi
done
sleep 2
fi
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0