On Mon, Aug 13, 2012 at 02:18:11PM +0200, Tiziano Zito wrote:
> What about this in condor.postinst::
> 
> SH=$(getent passwd | egrep '^condor:'| cut -d : -f 7)
> if [ "$SH" = "/bin/false" -o "$SH" = "/usr/sbin/nologin" ]; then
>    # condor user exists and it is a locked user 
> else
>    adduser --system ...
> fi

I'd like to turn this around: First run adduser and only if it fails
check for an existing condor user and issue a warning if it exists _and_
is locked down _and_ the package will use it as a daemon user. Otherwise fail.

The code above would result in a warning message on every upgrade,
even when the package did successfully create a system user itself.

Objections?

Michael


-- 
Michael Hanke
http://mih.voxindeserto.de


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to