summaryrefslogtreecommitdiff
path: root/fedora
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-05-31 16:37:00 +0200
committerAndreas Schwab <schwab@redhat.com>2010-05-31 16:37:00 +0200
commitaa3e9bcc7d94da0c6537eca4f4194898e4369fa3 (patch)
tree8e7a5272eda1b951b18e1189702d86b408cc5fd4 /fedora
parent585bdb5a93ecb310421b9625eb70b43b1a5ff9e1 (diff)
Fix users and groups creation in nscd %post script
Diffstat (limited to 'fedora')
-rw-r--r--fedora/glibc.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in
index d1e2436ad0..8e674a5ab4 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