preinst is in exabgp 4.0.2-2.
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
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
for f in processes/dynamic-1.sh processes/watchdog-1.sh processes/healthcheck.py; do
if ! egrep -q "$f" /etc/exabgp/exabgp.conf 2> /dev/null ; then
dpkg-maintscript-helper rm_conffile /etc/exabgp/"$f" -- "$@" ; fi
done
dpkg-maintscript-helper rm_conffile /etc/default/exabgp 3.4.9-0~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/exabgp/exabgp.conf 3.4.9-0~ -- "$@"
fi
exit 0
|