debian/groonga-munin-plugins.postinst
raw| 1 | #! /bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | prevver="$2" |
| 6 | |
| 7 | init_plugins() { |
| 8 | munin-node-configure --shell --remove-also | \ |
| 9 | grep -e 'groonga_' | \ |
| 10 | sh |
| 11 | invoke-rc.d munin-node restart |
| 12 | } |
| 13 | |
| 14 | case "$1" in |
| 15 | configure) |
| 16 | init_plugins |
| 17 | ;; |
| 18 | abort-upgrade|abort-deconfigure|abort-remove) |
| 19 | : |
| 20 | ;; |
| 21 | *) |
| 22 | echo "Called with unknown argument $1, bailing out." |
| 23 | exit 1 |
| 24 | ;; |
| 25 | esac |
| 26 | |
| 27 | #DEBHELPER# |