/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

  • Committer: Teddy Hogeborn
  • Date: 2009-04-17 08:26:17 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090417082617-eltetak5lzjyz55o
* initramfs-tools-hook: Bug fix: Add "--userid" and "--groupid" to
                        start of "plugin-runner.conf" file instead of
                        appending, to allow any preexisting options to
                        override.
* plugin-runner.conf: Improved wording.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    if [ -x /usr/sbin/update-initramfs ]; then
22
22
        update-initramfs -u -k all
23
23
    fi
24
 
    
25
 
    if dpkg --compare-versions "$2" lt-nl "1.0.10-1"; then
26
 
        # Make old initrd.img files unreadable too, in case they were
27
 
        # created with mandos-client 1.0.8 or older.
28
 
        find /boot -maxdepth 1 -type f -name "initrd.img-*.bak" \
29
 
            -print0 | xargs --null --no-run-if-empty chmod o-r
30
 
    fi
31
24
}
32
25
 
33
26
# Add user and group
61
54
 
62
55
case "$1" in
63
56
    configure)
64
 
        add_mandos_user "$@"
65
 
        create_key "$@"
66
 
        update_initramfs "$@"
 
57
        add_mandos_user
 
58
        create_key
 
59
        update_initramfs
67
60
        ;;
68
61
    abort-upgrade|abort-deconfigure|abort-remove)
69
62
        ;;