[pve-devel] [PATCH manager v2 16/17] buildsys: remove outdated preinst helper

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Mar 12 14:14:07 CET 2018


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 debian/preinst | 32 --------------------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 debian/preinst

diff --git a/debian/preinst b/debian/preinst
deleted file mode 100644
index 0fe385b5..00000000
--- a/debian/preinst
+++ /dev/null
@@ -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
-- 
2.14.2





More information about the pve-devel mailing list