- cleanup %pre script so amd.conf won't get stat()ed if it doesn't exist
(#126656)
This commit is contained in:
parent
e51b726480
commit
93b75eb57a
|
@ -1,7 +1,7 @@
|
||||||
Summary: Automount utilities including an updated version of Amd.
|
Summary: Automount utilities including an updated version of Amd.
|
||||||
Name: am-utils
|
Name: am-utils
|
||||||
Version: 6.0.9
|
Version: 6.0.9
|
||||||
Release: 9
|
Release: 10
|
||||||
License: BSD
|
License: BSD
|
||||||
Epoch: 5
|
Epoch: 5
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
@ -87,24 +87,15 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# Check if we have an old fashioned amd.conf and rename if to amd.net
|
# Check if we have an old fashioned amd.conf and rename if to amd.net
|
||||||
if [ "$1" -ne 0 ] ; then
|
if test "$1" -ne 0
|
||||||
if ! test -r /etc/amd.conf ; then
|
then if test -r /etc/amd.conf
|
||||||
# this is okay
|
then if grep -v -q "auto_dir" /etc/amd.conf
|
||||||
exit 0
|
then if test ! -e /etc/amd.net
|
||||||
elif grep -q "auto_dir" /etc/amd.conf 2>/dev/null ; then
|
then mv -f /etc/amd.conf /etc/amd.net
|
||||||
# this is okay
|
fi
|
||||||
exit 0
|
fi
|
||||||
else
|
fi
|
||||||
# this needs to be renamed. Still, if /etc/amd.net exists, then
|
|
||||||
# don't bother renaming it. RPM will handle it better than us here.
|
|
||||||
if [ -e /etc/amd.net ] ; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
mv -f /etc/amd.conf /etc/amd.net
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
@ -142,6 +133,10 @@ fi
|
||||||
%{_libdir}/libamu.so.*
|
%{_libdir}/libamu.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 12 2004 Adrian Havill <havill@redhat.com> 6.0.9-10
|
||||||
|
- cleanup %pre script so amd.conf won't get stat()ed if it doesn't
|
||||||
|
exist (#126656)
|
||||||
|
|
||||||
* Wed Sep 1 2004 Nalin Dahyabhai <nalin@redhat.com> 6.0.9-9
|
* Wed Sep 1 2004 Nalin Dahyabhai <nalin@redhat.com> 6.0.9-9
|
||||||
- really fix %%preun this time
|
- really fix %%preun this time
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue