summaryrefslogtreecommitdiffstats
path: root/debian/cryptsetup-nuke-password.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 14:14:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 14:14:45 +0000
commitedee58e75c1715e38c92b310bf8d996cc4951f78 (patch)
tree8d673113d422f5b40ba646c504e0ffd10fc8904d /debian/cryptsetup-nuke-password.preinst
parentAdding upstream version 4+nmu1. (diff)
downloadcryptsetup-nuke-password-edee58e75c1715e38c92b310bf8d996cc4951f78.tar.xz
cryptsetup-nuke-password-edee58e75c1715e38c92b310bf8d996cc4951f78.zip
Adding debian version 4+nmu1.debian/4+nmu1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/cryptsetup-nuke-password.preinst')
-rw-r--r--debian/cryptsetup-nuke-password.preinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/cryptsetup-nuke-password.preinst b/debian/cryptsetup-nuke-password.preinst
new file mode 100644
index 0000000..7836282
--- /dev/null
+++ b/debian/cryptsetup-nuke-password.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "install" ]; then
+ dpkg-divert --rename --package cryptsetup-nuke-password \
+ --divert /lib/cryptsetup/askpass.cryptsetup \
+ --add /lib/cryptsetup/askpass
+fi
+
+#DEBHELPER#