/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: Teddy Hogeborn
  • Date: 2008-09-19 16:41:13 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080919164113-j9egog1aqb1dh731
* debian/mandos-client.postinst (create_key): Do not abort on existing
                                              keys.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
. /usr/share/debconf/confmodule
19
19
 
20
 
# Update the initial RAM file system image
 
20
# Update the initial RAM filesystem image
21
21
update_initramfs()
22
22
{
23
 
    if [ -x /usr/sbin/update-initramfs ]; then
24
 
        update-initramfs -u -k all
25
 
    fi
 
23
        if type update-initramfs >/dev/null 2>&1; then
 
24
                update-initramfs -u
 
25
        fi
26
26
}
27
27
 
28
28
# Add user and group
30
30
    if ! getent passwd mandos >/dev/null; then
31
31
        adduser --disabled-password  --quiet --system \
32
32
            --home /var/run/mandos --no-create-home \
33
 
            --gecos "Mandos password system" --group mandos
 
33
            --gecos "Mandos password daemon" --group mandos
34
34
    fi
35
35
}
36
36
 
40
40
        -a -r /etc/keys/mandos/seckey.txt ]; then
41
41
        return 0
42
42
    fi
43
 
    if [ -x /usr/sbin/mandos-keygen ]; then
 
43
    if type mandos-keygen >/dev/null 2>&1; then
44
44
        mandos-keygen
45
45
    fi
46
46
}