]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- invalidate nscd cache when adding users group auto/ac/rpm-build-macros-1_289-1 auto/th/rpm-build-macros-1_289-1
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 11 Apr 2006 23:11:02 +0000 (23:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.289

rpm.macros

index 7fe6982c51d754f1906c3681bc8125565c9557fc..497b5098103d1df569a06cbb696860033df6ca6e 100644 (file)
@@ -618,7 +618,8 @@ else \
                -g %{-g*} \\\
                %{-M} \\\
                %{-G:-G %{-G*}} \\\
-               %{expand:%{%{#}}} 1>&2 \
+               %{expand:%{%{#}}} 1>&2 || exit $? \
+       [ ! -x /usr/sbin/nscd ] || /usr/sbin/nscd -i passwd \
 fi;
 
 # Usage:
@@ -639,7 +640,8 @@ if [ -n "`/usr/bin/getgid %{1}`" ]; then \
        fi \
 else \
        echo "Adding group %{1} GID=%{-g*}." \
-       /usr/sbin/groupadd -g %{-g*} -r %{1} 1>&2 \
+       /usr/sbin/groupadd -g %{-g*} -r %{1} 1>&2 || exit $? \
+       [ ! -x /usr/sbin/nscd ] || /usr/sbin/nscd -i group \
 fi;
 
 # apache_config_{install/uninstall} macros written by glen@pld-linux.org.
This page took 0.178033 seconds and 4 git commands to generate.