~packagekit/packagekit/ubuntu-maverick

« back to all changes in this revision

Viewing changes to debian/packagekit.postinst

  • Committer: Sebastian Heinlein
  • Date: 2008-07-30 08:31:16 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: sebi@glatzor.de-20080730083116-0cy902iro9a6uab4
Run the apt backend as root only and the packagekit daemon a dedicated system user. Therfor provide a patch for the dbus policy and add/remove the packagekitd user on install/removal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
if [ "$1" = "configure" ]; then
7
7
 
 
8
        if ! getent passwd packagekit >/dev/null; then
 
9
                adduser --system \
 
10
                        --quiet  \
 
11
                        --disabled-password \
 
12
                        --no-create-home \
 
13
                        --home "/var/lib/PackageKit" \
 
14
                        --gecos "PackageKit daemon" \
 
15
                        --group packagekit
 
16
        fi
 
17
 
 
18
        chown packagekit:packagekit /var/lib/PackageKit
 
19
 
8
20
        if [ -x /etc/init.d/dbus ]; then
9
21
                invoke-rc.d dbus force-reload || true
10
22
        fi