postinst 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 24 25 26 27 | #!/bin/sh
set -e
# stupid stupid stupid
if [ -e /etc/muddleftpd.save -a ! -e /etc/muddleftpd ]; then
mv /etc/muddleftpd.save /etc/muddleftpd
fi
if [ "$1" = "configure" ]; then
update-alternatives \
--install /usr/bin/ftpd ftpd /usr/bin/muddleftpd 30 \
--slave /usr/share/man/man1/ftpd.1.gz ftpd.1.gz \
/usr/share/man/man1/muddleftpd.1.gz
fi
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/muddleftpd" ]; then
update-rc.d muddleftpd defaults >/dev/null
fi
if [ -x "/etc/init.d/muddleftpd" ] || [ -e "/etc/init/muddleftpd.conf" ]; then
invoke-rc.d muddleftpd start || exit $?
fi
fi
# End automatically added section
|