/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: 2009-05-23 05:22:05 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090523052205-wgmxzffhlc30rodu
Tags: version-1.0.11-1
* Makefile (version): Changed to "1.0.11".
* NEWS (Version 1.0.11): New entry.
* debian/changelog (1.0.11-1): - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
# Add user and group
34
34
add_mandos_user(){
35
35
    # Rename old "mandos" user and group
36
 
    if dpkg --compare-versions "$2" lt "1.0.3-1"; then
37
 
        case "`getent passwd mandos`" in
38
 
            *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
39
 
                usermod --login _mandos mandos
40
 
                groupmod --new-name _mandos mandos
41
 
                return
42
 
                ;;
43
 
        esac
44
 
    fi
 
36
    case "`getent passwd mandos`" in
 
37
        *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
 
38
            usermod --login _mandos mandos
 
39
            groupmod --new-name _mandos mandos
 
40
            return
 
41
            ;;
 
42
    esac
45
43
    # Create new user and group
46
44
    if ! getent passwd _mandos >/dev/null; then
47
45
        adduser --system --force-badname --quiet --home /nonexistent \