From: Andreas Schwab Date: Mon, 31 May 2010 14:37:00 +0000 (+0200) Subject: Fix users and groups creation in nscd %post script X-Git-Tag: fedora/glibc-2.12.90-2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa3e9bcc7d94da0c6537eca4f4194898e4369fa3;p=thirdparty%2Fglibc.git Fix users and groups creation in nscd %post script --- diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in index d1e2436ad02..8e674a5ab46 100644 --- a/fedora/glibc.spec.in +++ b/fedora/glibc.spec.in @@ -894,8 +894,10 @@ fi %postun utils -p /sbin/ldconfig %pre -n nscd -/usr/sbin/useradd -M -o -r -d / -s /sbin/nologin \ - -c "NSCD Daemon" -u 28 nscd > /dev/null 2>&1 || : +getent group nscd >/dev/null || /usr/sbin/groupadd -g 28 -r nscd +getent passwd nscd >/dev/null || + /usr/sbin/useradd -M -o -r -d / -s /sbin/nologin \ + -c "NSCD Daemon" -u 28 -g nscd nscd %post -n nscd /sbin/chkconfig --add nscd