]> git.proxmox.com Git - pve-firewall.git/commitdiff
debian: drop preinst
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 8 Mar 2018 12:33:54 +0000 (13:33 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 8 Mar 2018 12:50:49 +0000 (13:50 +0100)
the only actual code was for upgrading from PVE 3 to PVE 4..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/preinst [deleted file]

diff --git a/debian/preinst b/debian/preinst
deleted file mode 100644 (file)
index 967b9f8..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "$1" in
-    install|upgrade)
-       old_version=$2
-       if [ -e '/usr/sbin/pve-firewall' ]; then
-           if dpkg --compare-versions "$old_version" lt '1.0-16' ; then
-               echo "Detected old pve-firewall version - using stop/start to restart"
-               pve-firewall stop
-           fi
-       fi
-    ;;
-
-    abort-upgrade)
-    ;;
-
-    *)
-        echo "preinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-#DEBHELPER#
-
-exit 0