summaryrefslogtreecommitdiffstats
path: root/debian/suricata.preinst
blob: 50f7117833d7a124e49af3bd8dc5c8c565918cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

# we do not need alternatives anymore
if update-alternatives --quiet --query suricata 2> /dev/null; then
    echo "Removing legacy alternatives for Hyperscan/non-Hyperscan versions"
    update-alternatives --remove-all suricata
fi

#DEBHELPER#

exit 0