]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- useradd/groupadd macros
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 18 Jun 2005 21:44:30 +0000 (21:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    glibc.spec -> 1.583.2.21

glibc.spec

index a6e097875f05f8dbc28fe8e645f24f10ef7616ae..876b422ea1bce7d940b37855034378574524524d 100644 (file)
@@ -1117,22 +1117,8 @@ rm -rf $RPM_BUILD_ROOT
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %pre -n nscd
-if [ -n "`/usr/bin/getgid nscd`" ]; then
-       if [ "`/usr/bin/getgid nscd`" != "144" ]; then
-               echo "Error: group nscd doesn't have gid=144. Correct this before installing nscd." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 144 -r nscd
-fi
-if [ -n "`/bin/id -u nscd 2>/dev/null`" ]; then
-       if [ "`/bin/id -u nscd`" != "144" ]; then
-               echo "Error: user nscd doesn't have uid=144. Correct this before installing nscd." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -u 144 -r -d /tmp -s /bin/false -c "nscd" -g nscd nscd 1>&2
-fi
+%groupadd -P nscd -g 144 -r nscd
+%useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "nscd" -g nscd nscd
 
 %post -n nscd
 /sbin/chkconfig --add nscd
This page took 0.25125 seconds and 4 git commands to generate.