/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos.postinst

  • Committer: Teddy Hogeborn
  • Date: 2009-10-22 00:05:01 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091022000501-g792e99q5g1wkyet
Merge from release branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
 
1
#!/bin/sh -e
2
2
# This script can be called in the following ways:
3
3
#
4
4
# After the package was installed:
15
15
# If prerm fails during replacement due to conflict:
16
16
#       <postinst> abort-remove in-favour <new-package> <version>
17
17
 
18
 
set -e
19
 
 
20
18
case "$1" in
21
19
    configure)
22
20
        # Rename old "mandos" user and group
35
33
                --disabled-password --gecos "Mandos password system" \
36
34
                _mandos
37
35
        fi
38
 
        chown _mandos:_mandos /var/lib/mandos
39
36
        ;;
40
 
    
 
37
 
41
38
    abort-upgrade|abort-deconfigure|abort-remove)
42
39
        ;;
43
 
    
 
40
 
44
41
    *)
45
42
        echo "$0 called with unknown argument '$1'" 1>&2
46
43
        exit 1