~ubuntu-branches/ubuntu/gutsy/trousers/gutsy

« back to all changes in this revision

Viewing changes to debian/trousers.postinst

  • Committer: Bazaar Package Importer
  • Author(s): William Lima
  • Date: 2007-04-18 16:39:38 UTC
  • Revision ID: james.westby@ubuntu.com-20070418163938-ept1wq6q5tyzlyx5
Tags: 0.2.9.1-0ubuntu1
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
case "$1" in
 
6
        configure)
 
7
 
 
8
          if ! getent group tss >/dev/null; then
 
9
                addgroup --system tss >/dev/null
 
10
          fi
 
11
 
 
12
          if ! getent passwd tss >/dev/null; then
 
13
                adduser \
 
14
                  --system \
 
15
                  --no-create-home \
 
16
                  --disabled-password \
 
17
                  --ingroup tss \
 
18
                  tss  >/dev/null
 
19
          fi
 
20
 
 
21
          chown tss:tss /etc/tcsd.conf
 
22
          chmod 0600 /etc/tcsd.conf
 
23
          chown tss:tss /usr/sbin/tcsd
 
24
          chown tss:tss /var/lib/tpm
 
25
          chmod 1777 /var/lib/tpm
 
26
        ;;
 
27
 
 
28
        abort-upgrade|abort-remove|abort-deconfigure)
 
29
        ;;
 
30
 
 
31
        *)
 
32
          echo "postinst called with unknown argument \`$1'" >&2
 
33
          exit 1
 
34
        ;;
 
35
 
 
36
esac
 
37
 
 
38
#DEBHELPER#
 
39
 
 
40
exit 0