[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpms/nsd/devel nsd-2.3.3-checking.patch, NONE, 1.1 nsd-2.3.3.spec, NONE, 1.1 nsd.init, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



On Tue, 2005-12-13 at 07:41 +0100, Ralf Corsepius wrote:
> On Mon, 2005-12-12 at 22:51 -0500, Paul Wouters wrote:
>
> > %pre
> > if getent passwd nsd >/dev/null 2>&1 ; then : ; else /usr/sbin/useradd -d /etc/nsd -r -s /sbin/nologin nsd >/dev/null 2>&1 || exit 1 ; fi
> 
> This all is unnecessarily complicated. 
> 
> It can be replaced by a simple:
> /usr/sbin/useradd -d /etc/nsd -r -s /sbin/nologin nsd 2>/dev/null

That line would need "|| :" appended in order to not break if the nsd
user exists before installing the package (such as in package upgrades,
or even some initial installs).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]