/[kvoss]/package/debian/kvalobs/trunk/postinst
ViewVC logotype

Contents of /package/debian/kvalobs/trunk/postinst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 424 - (show annotations) (download)
Thu Jun 5 19:36:09 2008 UTC (12 years, 2 months ago) by borgem
File size: 2031 byte(s)
Set correct group and permission.
1 #!/bin/sh
2 # postinst script for kvalobs
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <postinst> `configure' <most-recently-configured-version>
10 # * <old-postinst> `abort-upgrade' <new version>
11 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12 # <new-version>
13 # * <postinst> `abort-remove'
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15 # <failed-install-package> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20 #BINDIR, BIN and DIR must be in sync with the respectives variables in postrm.
21
22 BINDIR="/usr/bin"
23 BIN="kv2kro kvAgregated kvconfig kvDataInputd kvDataInputd_clt kvdbadmin kvManagerd kvmgrclt
24 kvQabased kvServiced kvstart kvstop kvsynopclt kvsynopd kvsynopdbadmin kvsynopdbclt
25 kvsynopd_initdb kvsynopdparse norcom2kv"
26
27 DIRS="/usr/share/kvalobs/metadata
28 /etc/kvalobs
29 /var/kvalobs
30 /var/kvalobs/agregate
31 /var/kvalobs/kvsynop
32 /var/kvalobs/kvsynop/debug
33 /var/kvalobs/log
34 /var/kvalobs/log/html
35 /var/kvalobs/log/kvsynop
36 /var/kvalobs/run"
37
38
39
40 case "$1" in
41 configure)
42 for i in "$BIN"; do
43 # only do something when no setting exists
44 if ! dpkg-statoverride --list $BINDIR/$i >/dev/null 2>&1
45 then
46 dpkg-statoverride --update --add root kvalobs 774 $BINDIR/$i
47 fi
48 done
49 for i in "$DIRS"; do
50 # only do something when no setting exists
51 if ! dpkg-statoverride --list $i >/dev/null 2>&1
52 then
53 dpkg-statoverride --update --add root kvalobs 2775 $i
54 fi
55 donew
56 ;;
57
58 abort-upgrade|abort-remove|abort-deconfigure)
59 ;;
60
61 *)
62 echo "postinst called with unknown argument \`$1'" >&2
63 exit 1
64 ;;
65 esac
66
67 # dh_installdeb will replace this with shell code automatically
68 # generated by other debhelper scripts.
69
70 #DEBHELPER#
71
72 exit 0
73
74

Properties

Name Value
svn:executable *

svn@met.no
ViewVC Help
Powered by ViewVC 1.1.5