preinst is in muddleftpd 1.3.13.1-4.3ubuntu2.
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
# stupid stupid stupid
if [ '(' "$1" = "upgrade" -o "$1" = "install" ')' -a '(' "$2" = "1.3.11-2" -o "$2" = "1.3.11-3" ')' ]; then
mv /etc/muddleftpd /etc/muddleftpd.save
mkdir /etc/muddleftpd
fi
# clean up any debconf cruft lying around from older versions
if [ "$1" = "upgrade" -o "$1" = "install" ] && dpkg --compare-versions "$2" lt 1.3.7-7; then
# but only if debconf is actually there...
if [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
else
echo "Warning: debconf does not appear to be installed."
echo "Not attempting to purge obsolete db entries for muddleftpd."
fi
fi
|