Skip to content

Commit

Permalink
Fix users and groups creation in nscd %post script
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed May 31, 2010
1 parent 47e94cd commit 338fbf6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fedora/glibc.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 338fbf6

Please sign in to comment.