/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-client.postinst

merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
# Add user and group
29
29
add_mandos_user(){
30
 
    # Rename old "mandos" user and group
31
 
    case "$(getent passwd mandos)" in
32
 
        *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
33
 
            usermod --login _mandos mandos
34
 
            groupmod --new-name _mandos mandos
35
 
            return
36
 
            ;;
37
 
    esac
38
 
    # Create new user and group
39
 
    if ! getent passwd _mandos >/dev/null; then
40
 
        adduser --system --force-badname --quiet --home /nonexistent \
41
 
            --no-create-home --group --disabled-password \
42
 
            --gecos "Mandos password system" _mandos
 
30
    if ! getent passwd mandos >/dev/null; then
 
31
        adduser --disabled-password  --quiet --system \
 
32
            --home /var/run/mandos --no-create-home \
 
33
            --gecos "Mandos password system" --group mandos
43
34
    fi
44
35
}
45
36