tags 378822 patch
thanks

Hi, 
patch attached.
This of course also breaks updates.
-Thom
--- postinst    2006-07-23 15:49:48.000000000 +0200
+++ /tmp/buildbot-postinst      2006-07-23 16:05:38.000000000 +0200
@@ -4,10 +4,12 @@
 
 case "$1" in
     configure)
-        echo "Creating/updating buildbot user account..."
-        adduser --home /var/run/buildbot \
-                --gecos "BuildBot system user" \
-                --quiet --disabled-password buildbot
+        if ! getent passwd buildbot>/dev/null; then
+                echo "Creating/updating buildbot user account..."
+                adduser --home /var/run/buildbot \
+                        --gecos "BuildBot system user" \
+                        --quiet --disabled-password buildbot
+        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Reply via email to