preinst is in exabgp 3.1.9-1.
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 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
FILE_ONE="/etc/exabgp/processes/dynamic-1.sh"
FILE_TWO="/etc/exabgp/processes/watchdog-1.sh"
if ! egrep -q "$FILE_ONE" /etc/exabgp/exabgp.conf 2> /dev/null ; then dpkg-maintscript-helper rm_conffile "$FILE_ONE" -- "$@" ; fi
if ! egrep -q "$FILE_TWO" /etc/exabgp/exabgp.conf 2> /dev/null ; then dpkg-maintscript-helper rm_conffile "$FILE_TWO" -- "$@" ; fi
fi
exit 0
|