preinst is in inn 1:1.7.2q-41build1.
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 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh -e
check_version() {
case "$2" in
1.4*)
echo "Upgrade from INN 1.4 is not supported."
exit 1
;;
2.2.2)
echo "Upgrade from INN 2.2.2 is not supported."
exit 1
;;
esac
}
case "$1" in
install)
;;
upgrade|abort-upgrade)
check_version "$@"
;;
*)
echo "preinst called with unknown argument '$1'" >&2
exit 1
;;
esac
|