#! /bin/sh # preinst script for pure-ftpd set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' case "$1" in install|upgrade) if dpkg --compare-versions "$2" lt-nl 0.98.7-5 && grep pure-ftpd /etc/inetd.conf > /dev/null 2>&1 then grep pure-ftpd /etc/inetd.conf > /etc/inetd.conf-pureftpd.preinst || true fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0