On Mon, Oct 18, 2010 at 03:22:36PM -0500, Jonathan Nieder wrote: > Daniel Baumann wrote: > > +++ b/debian/git-daemon-sysv.postrm > > @@ -0,0 +1,10 @@ > > +#!/bin/sh > > +set -e > > + > > +test "$1" = 'purge' || exit 0 > > + > > +update-rc.d git-daemon remove >/dev/null > > + > > +getent passwd gitlog >/dev/null || exit 0 > > +! deluser --version >/dev/null 2>&1 || exec deluser -f gitlog > > +echo 'deluser program not available, not removing system user "gitlog".' > > >&2 > > Yuck. Policy can be unpleasant sometimes. :( > > Maybe the gitlog user should be removed at deconfigure-time.
I don't know about the -sysv package, but for the git-daemon-run package this is not a good idea. On deconfigure the saved logs aren't removed and still owned by gitlog. On purge the logs are removed and then the gitlog user. Removing the user prior to the logs isn't a good idea I think. Regards, Gerrit. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org