preinst is in php-horde-core 2.31.1+debian0-1ubuntu1.
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 | #!/bin/sh
set -e
# Automatically added by dh_installdeb/11.1.4ubuntu1
dpkg-maintscript-helper symlink_to_dir /usr/share/horde/js/jquery.mobile/images /usr/share/javascript/jquery-mobile/images 2.27.6+debian1-1~ -- "$@"
# End automatically added section
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
|