postinst is in libevd-0.1-0 0.1.28-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 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh
set -e
export LC_ALL=C
type="$1"
preversion="$2"
if [ "$type" = "configure" ]; then
if [ -n "$preversion" ]; then
# Restart FileTea if upgrading from EventDance 0.1.18
if dpkg --compare-versions "$preversion" lt 0.1.20; then
invoke-rc.d filetea status >/dev/null 2>&1 && status=0 || status=$?
if [ "$status" = "0" ]; then
invoke-rc.d filetea restart
fi
fi
fi
fi
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
exit 0
|