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

Contents of /package/debian/kvalobs/trunk/preinst

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: 979 byte(s)
Set correct group and permission.
1 #!/bin/sh
2 # preinst script for kvalobs
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <new-preinst> `install'
10 # * <new-preinst> `install' <old-version>
11 # * <new-preinst> `upgrade' <old-version>
12 # * <old-preinst> `abort-upgrade' <new-version>
13 # for details, see http://www.debian.org/doc/debian-policy/ or
14 # the debian-policy package
15
16 #Check if the kvalobs user and kvalobs group exist, if not abort
17 #the install process.
18
19
20 case "$1" in
21 install|upgrade)
22 if ! getent passwd kvalobs ; then
23 echo "The kvalobs user do not exist."
24 exit 1
25 fi
26 if ! getent group kvalobs ; then
27 echo "The kvalobs group do not exist."
28 exit 1
29 fi
30 ;;
31
32 abort-upgrade)
33 ;;
34
35 *)
36 echo "preinst called with unknown argument \`$1'" >&2
37 exit 1
38 ;;
39 esac
40
41 # dh_installdeb will replace this with shell code automatically
42 # generated by other debhelper scripts.
43
44 #DEBHELPER#
45
46 exit 0
47
48

Properties

Name Value
svn:executable *

svn@met.no
ViewVC Help
Powered by ViewVC 1.1.5