/mandos/release

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

« back to all changes in this revision

Viewing changes to debian/mandos-client.postinst

  • Committer: Björn Påhlsson
  • Date: 2008-09-20 03:31:01 UTC
  • mto: (237.7.1 mandos) (24.1.154 mandos)
  • mto: This revision was merged to the branch mainline in revision 203.
  • Revision ID: belorn@braxen-20080920033101-f3f3mtozgq6fy8xl
fixed todo to reflect recent changes

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