preinst is in zabbix-server-mysql 1:1.8.11-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 | #!/bin/sh -e
. /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ]
if [ "$1" = "upgrade" ]; then
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1:1.8"; then
db_fset zabbix-server-mysql/server seen false
db_input critical zabbix-server-mysql/server
db_go
fi
fi
db_stop
exit 0
|