/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: 2008-10-05 17:38:31 UTC
  • Revision ID: teddy@fukt.bsnet.se-20081005173831-fysrfayl4yvhlo6x
* INSTALL: Add instructions on how to set the correct network
           interface on the cient, and also how to test the server and
           verify the password.

* TODO: Clean up old stuff.

* debian/mandos-client.README.Debian: Separate into sections with
                                      headlines.  Add instructions on
                                      how to test the server and
                                      verify the password.

* plugin-runner.conf: Add reminder to update initrd image.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# If prerm fails during replacement due to conflict:
16
16
#       <postinst> abort-remove in-favour <new-package> <version>
17
17
 
 
18
. /usr/share/debconf/confmodule
 
19
 
18
20
case "$1" in
19
21
    configure)
20
 
        # Rename old "mandos" user and group
21
 
        case "$(getent passwd mandos)" in
22
 
            *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
23
 
                usermod --login _mandos mandos
24
 
                groupmod --new-name _mandos mandos
25
 
                ;;
26
 
        esac
27
 
        # Create new user and group
28
 
        if ! getent passwd _mandos >/dev/null; then
29
 
            adduser --system --force-badname --quiet \
30
 
                --home /nonexistent --no-create-home --group \
31
 
                --disabled-password --gecos "Mandos password system" \
32
 
                _mandos
 
22
        if ! getent passwd mandos >/dev/null; then
 
23
            adduser --disabled-password  --quiet --system \
 
24
                --home /nonexistent --no-create-home \
 
25
                --gecos "Mandos password system" --group mandos
33
26
        fi
34
27
        ;;
35
28