summaryrefslogtreecommitdiff
path: root/debian/itzks-systems-diskless.preinst
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-07 15:20:27 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-07 16:52:12 +0100
commit21d9bd0108d7b4a84afea64de47d327026efca85 (patch)
treeab624d5859a49cc995dc47c5a8427cd8a472954f /debian/itzks-systems-diskless.preinst
parent71da1427fe6ac6b2597b07513b1f83ec7739ced6 (diff)
downloaditzks-systems-21d9bd0108d7b4a84afea64de47d327026efca85.tar.gz
itzks-systems-21d9bd0108d7b4a84afea64de47d327026efca85.tar.bz2
itzks-systems-21d9bd0108d7b4a84afea64de47d327026efca85.zip
fetch-filter-cert: Remove init script. Not required anymore for Debian Edu 11 (which has a rootCA now).
Diffstat (limited to 'debian/itzks-systems-diskless.preinst')
-rwxr-xr-xdebian/itzks-systems-diskless.preinst39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/itzks-systems-diskless.preinst b/debian/itzks-systems-diskless.preinst
new file mode 100755
index 0000000..e9d02f5
--- /dev/null
+++ b/debian/itzks-systems-diskless.preinst
@@ -0,0 +1,39 @@
+#!/bin/sh
+# preinst script for itzks-systems-diskless
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+case "$1" in
+ install|upgrade)
+ if dpkg --compare-versions "$2" lt "2022.01.07.1~"; then
+ update-rc.d fetch-filter-cert remove >/dev/null || exit $?
+ fi
+ ;;
+ abort-upgrade)
+ ;;
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0