/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:
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
# Update the initial RAM file system image
19
21
update_initramfs()
20
22
{
25
27
 
26
28
# Add user and group
27
29
add_mandos_user(){
28
 
    # Rename old "mandos" user and group
29
 
    case "$(getent passwd mandos)" in
30
 
        *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
31
 
            usermod --login _mandos mandos
32
 
            groupmod --new-name _mandos mandos
33
 
            return
34
 
            ;;
35
 
    esac
36
 
    # Create new user and group
37
 
    if ! getent passwd _mandos >/dev/null; then
38
 
        adduser --system --force-badname --quiet --home /nonexistent \
39
 
            --no-create-home --group --disabled-password \
40
 
            --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
41
34
    fi
42
35
}
43
36