preinst is in hybserv 1.9.5-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = "upgrade" ]; then
if [ "$2" = "1.8.0-1" ]; then
echo "Making sure hybserv is dead, initscript from 1.8.0-1 is not so good..."
kill -9 `cat /var/run/ircd/hybserv.pid` >/dev/null 2>&1 || true
rm -f /var/run/ircd/hybserv.pid
fi
if dpkg --compare-versions "$2" ge "1.9.2-2"; then
db_purge
fi
fi
|