~packagekit/packagekit/ubuntu-maverick

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# postinst script for packagekit

set -e

if [ "$1" = "configure" ]; then

	if ! getent passwd packagekit >/dev/null; then
		adduser --system \
			--quiet  \
			--disabled-password \
			--no-create-home \
			--home "/var/lib/PackageKit" \
			--gecos "PackageKit daemon" \
			--group packagekit
	fi

	chown packagekit:packagekit /var/lib/PackageKit

	if [ -x /etc/init.d/dbus ]; then
		invoke-rc.d dbus force-reload || true
        fi
fi

#DEBHELPER#

exit 0