postinst is in groonga-munin-plugins 6.0.1-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 16 17 18 19 20 21 22 23 24 25 | #! /bin/sh
set -e
prevver="$2"
init_plugins() {
munin-node-configure --shell --remove-also | \
grep -e 'groonga_' | \
sh
invoke-rc.d munin-node restart
}
case "$1" in
configure)
init_plugins
;;
abort-upgrade|abort-deconfigure|abort-remove)
:
;;
*)
echo "Called with unknown argument $1, bailing out."
exit 1
;;
esac
|