File: postinst

package info (click to toggle)
hobbit-plugins 20201127
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 596 kB
  • sloc: perl: 3,300; sh: 34; makefile: 16
file content (30 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (2)
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
29
30
#!/bin/sh

LOCAL_CONFIG_FILES="apt_no_repo_accept apt_reject libs.local.yaml zombies_ignore"

set -e

case $1 in
	configure)
		# Move configuration files which are recognized, but
		# not shipped by default and hence are not conffiles.
		# See README.Debian.
		if [ -d /etc/hobbit/ ]; then
                    for f in $LOCAL_CONFIG_FILES; do
                        if [ -e /etc/hobbit/$f -a ! -e /etc/xymon/$f ]; then
                            mv -v /etc/hobbit/$f /etc/xymon/$f
                        fi
                    done
                fi

		if test -x /usr/lib/xymon/server/bin/xymond ; then
			invoke-rc.d xymon reload || :
		else
			invoke-rc.d xymon-client reload || :
		fi
		;;
esac

#DEBHELPER#

exit 0