preinst is in pollinate 4.7-0ubuntu1.
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 -e
PKG="pollinate"
# Repair busted/broken conffile from 3.12-0ubuntu1, LP: #1278770
if [ "$(md5sum /etc/init/pollinate.conf | awk '{print $1}')" = "2d63aa17344c4ed9ebd54c9abc6cd937" ]; then
sed -i -e "s/^setuid daemon/setuid root/" /etc/init/pollinate.conf
fi
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/pollinate" ] && [ -L "/etc/init.d/pollinate" ] \
&& [ $(readlink -f "/etc/init.d/pollinate") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/pollinate"
fi
fi
# End automatically added section
|