preinst is in php-horde-core 2.11.1-2.
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 | #!/bin/sh
set -e
case "$1" in
install|upgrade)
# jquery.mobile was previously a symlink to jquery-mobile (<= 2.4.3-1),
# but as it was missing jquery, the directory was put back. However,
# dpkg does not delete the symlink on upgrade...
if [ -L /usr/share/horde/js/jquery.mobile ]; then
rm /usr/share/horde/js/jquery.mobile
fi
;;
*)
;;
esac
exit 0
|