diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-05-31 16:37:00 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2010-05-31 17:51:37 +0200 |
commit | 338fbf6f508a1378faafcfce45cacd8286c96597 (patch) | |
tree | 1a45966619ef7c6fde669a21999d4c6e26d85ad6 | |
parent | 47e94cdf5a90418d6824e5c0d25f6f612e282c19 (diff) |
Fix users and groups creation in nscd %post script
-rw-r--r-- | fedora/glibc.spec.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in index ee13633582..96624f2500 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 |