summaryrefslogtreecommitdiffstats
path: root/debian/preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:34:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:34:38 +0000
commitdf7e23e93574873618aee45820803ee4c38d9698 (patch)
treee4772d1825878a561dec4bf04262aff22cc8cef1 /debian/preinst
parentAdding upstream version 3.3a. (diff)
downloadtmux-df7e23e93574873618aee45820803ee4c38d9698.tar.xz
tmux-df7e23e93574873618aee45820803ee4c38d9698.zip
Adding debian version 3.3a-5.debian/3.3a-5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/preinst')
-rwxr-xr-xdebian/preinst10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst
new file mode 100755
index 0000000..a22b4d2
--- /dev/null
+++ b/debian/preinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Versions before 1.5-2 did not properly disable the tmux-cleanup init script.
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" 'lt' "1.5-2"; then
+ update-rc.d -f tmux-cleanup remove >/dev/null
+fi
+
+#DEBHELPER#