package boinc-client
tags 372950 + pending
stop

On Monday 12 June 2006 17:25, christoph martin wrote:
> when using boinc-client in a mixed stable testing Debian environment
> the postinst stops with the following error:
>
> Setting up boinc-client (5.4.9-1) ...
> useradd: unknown group boinc
> adduser: `/usr/sbin/useradd -d /var/lib/boinc-client -g boinc -s /bin/false
> -u 111 boinc' returned error code 6.  Aborting.
>
> Using the adduser version from testing everything ist working ok.

Hi Christoph,

I'm going to commit the patch below, which should ensure that the group boinc 
exists when trying to create the user boinc. With this patch we also don't 
need to tighten the dependency on adduser.

Index: boinc-client.postinst
===================================================================
--- boinc-client.postinst       (revision 446)
+++ boinc-client.postinst       (working copy)
@@ -17,8 +17,14 @@

 case "$1" in
     configure)
+        # Create boinc group if it doesn't already exist.
+        if ! getent group boinc >/dev/null; then
+            addgroup --quiet --system boinc
+        fi
+
+        # Create boinc user if it doesn't already exist.
         if ! getent passwd boinc >/dev/null; then
-            adduser --quiet --system --group --home $BOINC_DIR \
+            adduser --quiet --system --ingroup boinc --home $BOINC_DIR \
              --gecos "BOINC core client" boinc
         fi

Attachment: pgpBSLXLE4CSx.pgp
Description: PGP signature

Reply via email to