postinst is in keepalived 1:1.2.7-1ubuntu1.
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 | #!/bin/sh
# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt "1.1.12-1ubuntu1"; then
rm -f /etc/rc0.d/K20keepalived /etc/rc6.d/K20keepalived
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/keepalived" ] || [ -e "/etc/init/keepalived.conf" ]; then
if [ ! -e "/etc/init/keepalived.conf" ]; then
update-rc.d keepalived defaults >/dev/null
fi
invoke-rc.d keepalived start || exit $?
fi
# End automatically added section
|