~packagekit/packagekit/ubuntu-maverick

« back to all changes in this revision

Viewing changes to debian/packagekit.postinst

  • Committer: Sebastian Heinlein
  • Date: 2008-03-11 09:16:43 UTC
  • Revision ID: sebi@glatzor.de-20080311091643-nh38nhb1020d4nxy
* Follow forked-dbus-backend branch
* Switch to the apt2 backend
* New dependency on apt-xapian-index
* New build dependeny on intltool
* Run the packagekitd as packagekit user
* Improve description (thanks to Guus Sliepen)
* Add a patch to allow the root backend user to own the dbus object

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# postinst script for packagekit
 
3
 
 
4
set -e
 
5
 
 
6
if [ "$1" = "configure" ]; then
 
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
 
 
20
        if [ -x /etc/init.d/dbus ]; then
 
21
                invoke-rc.d dbus force-reload || true
 
22
        fi
 
23
fi
 
24
 
 
25
#DEBHELPER#
 
26
 
 
27
exit 0
 
28