File: groonga-munin-plugins.postinst

package info (click to toggle)
groonga 15.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 163,080 kB
  • sloc: ansic: 770,564; cpp: 48,925; ruby: 40,447; javascript: 10,250; yacc: 7,045; sh: 5,602; python: 2,821; makefile: 1,672
file content (27 lines) | stat: -rwxr-xr-x 461 bytes parent folder | download | duplicates (6)
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
#! /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

#DEBHELPER#