Browse Source

Remove configuration transition code

Was needed in the upgrade to bullseye only.
Christoph Biedl 2 years ago
parent
commit
e838e62330
1 changed files with 0 additions and 36 deletions
  1. 0 36
      debian/softflowd.preinst

+ 0 - 36
debian/softflowd.preinst

@@ -1,36 +0,0 @@
-#!/bin/sh
-
-set -e
-
-DEFAULT_CONF='/etc/softflowd/default.conf'
-LEGACY_CONF='/etc/default/softflowd'
-
-case "$1" in
-install)
-    ;;
-upgrade)
-    if \
-        dpkg --compare-versions "$2" lt 0.9.9-4~ &&
-        [ -f "$LEGACY_CONF" ] &&
-        [ ! -f "$DEFAULT_CONF" ] &&
-        [ $(md5sum "$LEGACY_CONF" | awk '{print $1}') != '617dbe97c274b4491b22b85b28f3ccf0' ]
-    then
-        # create /etc/softflowd/default.conf from /etc/default/softflowd
-        # lower-case key names
-        mkdir -p "$(dirname "$DEFAULT_CONF")"
-        sed  -e '
-            s/^INTERFACE=/interface=/ ;
-            s/^OPTIONS=/options=/ ;
-        ' <"$LEGACY_CONF" >"$DEFAULT_CONF"
-    fi
-    ;;
-abort-upgrade)
-    ;;
-*)
-    echo "preinst called with unknown argument '$1'"
-    exit 1
-    ;;
-esac
-
-#DEBHELPER#
-exit 0