/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-01-18 00:16:57 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090118001657-6mo3ae73ldy5tegf
* debian/mandos-client.postinst: Converted to Bourne shell.  Also
                                 minor message change.
* debian/mandos-client.postrm: Minor message change.
* debian/mandos.postinst: Converted to Bourne shell.  Also minor
                          message change.
* debian/mandos.prerm: Minor message change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash -e
 
1
#!/bin/sh -e
2
2
# This script can be called in the following ways:
3
3
#
4
4
# After the package was installed:
18
18
case "$1" in
19
19
    configure)
20
20
        # Rename old "mandos" user and group
21
 
        case "$(getent passwd mandos)" in
 
21
        case "`getent passwd mandos`" in
22
22
            *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
23
23
                usermod --login _mandos mandos
24
24
                groupmod --new-name _mandos mandos
37
37
        ;;
38
38
 
39
39
    *)
40
 
        echo "$0 called with unknown argument \`$1'" 1>&2
 
40
        echo "$0 called with unknown argument '$1'" 1>&2
41
41
        exit 1
42
42
        ;;
43
43
esac