diff -u nut-2.2.1/debian/nut.preinst nut-2.2.1/debian/nut.preinst --- nut-2.2.1/debian/nut.preinst +++ nut-2.2.1/debian/nut.preinst @@ -13,7 +13,7 @@ check_and_create_user() { if [ ! "`getent passwd nut`" ]; then - adduser --quiet --system --ingroup nut --ingroup dialout --home /var/lib/nut --no-create-home nut + adduser --quiet --system nut --ingroup dialout --home /var/lib/nut --no-create-home nut # else # printf "error: user \"nut\" already exists... see /usr/share/doc/nut/README.Debian\n" && exit 1 fi diff -u nut-2.2.1/debian/nut-cgi.preinst nut-2.2.1/debian/nut-cgi.preinst --- nut-2.2.1/debian/nut-cgi.preinst +++ nut-2.2.1/debian/nut-cgi.preinst @@ -13,7 +13,7 @@ check_and_create_user() { if [ -z `getent passwd nut` ]; then - adduser --quiet --system --ingroup nut --ingroup dialout --home /var/lib/nut --no-create-home nut + adduser --quiet --system nut --ingroup dialout --home /var/lib/nut --no-create-home nut # else # printf "error: user \"nut\" already exists... see /usr/share/doc/nut/README.Debian\n" && exit 1 fi diff -u nut-2.2.1/debian/nut.postinst nut-2.2.1/debian/nut.postinst --- nut-2.2.1/debian/nut.postinst +++ nut-2.2.1/debian/nut.postinst @@ -27,6 +27,7 @@ udevtrigger --subsystem-match=usb_device fi fi + ;; abort-upgrade) diff -u nut-2.2.1/debian/changelog nut-2.2.1/debian/changelog --- nut-2.2.1/debian/changelog +++ nut-2.2.1/debian/changelog @@ -1,3 +1,11 @@ +nut (2.2.1-2.1ubuntu7.1) hardy-proposed; urgency=low + + * debian/nut.preinst + - Make sure the nut user is acutally in the nut group or upsd wont start. + (LP: #222761) + + -- Chuck Short Mon, 28 Apr 2008 08:36:58 -0400 + nut (2.2.1-2.1ubuntu7) hardy; urgency=low * debian/patches/01_fix_megatec_regression.dpatch diff -u nut-2.2.1/debian/nut-hal-drivers.preinst nut-2.2.1/debian/nut-hal-drivers.preinst --- nut-2.2.1/debian/nut-hal-drivers.preinst +++ nut-2.2.1/debian/nut-hal-drivers.preinst @@ -13,7 +13,7 @@ check_and_create_user() { if [ -z `getent passwd nut` ]; then - adduser --quiet --system --ingroup nut --ingroup dialout --home /var/lib/nut --no-create-home nut + adduser --quiet --system --ingroup dialout --home /var/lib/nut --no-create-home nut # else # printf "error: user \"nut\" already exists... see /usr/share/doc/nut/README.Debian\n" && exit 1 fi