summaryrefslogtreecommitdiffstats
path: root/debian/preinst
blob: a22b4d2e9897130cac1acc0830f2d5a0ba478f11 (plain)
1
2
3
4
5
6
7
8
9
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#