~packagekit/packagekit/ubuntu-maverick

« back to all changes in this revision

Viewing changes to debian/packagekit.postrm

  • 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:
6
6
#DEBHELPER#
7
7
 
8
8
if [ "$1" = "purge" ]; then
 
9
        if getent user packagekit >/dev/null; then
 
10
                if [ -x /usr/sbin/deluser ]; then
 
11
                        deluser --quiet --system packagekit
 
12
                fi
 
13
        fi
9
14
 
10
15
        if [ -x /etc/init.d/dbus ]; then
11
16
                invoke-rc.d dbus force-reload || true