fixed the spec file, so that multipath will not lose its binding if it is

upgraded from a package where the bindings file was stored in
    /var/lib/multipath/bindings
This commit is contained in:
Benjamin Marzinski 2009-07-30 01:34:50 +00:00
parent c7ea1a3b8d
commit 0499e0d2c4

View File

@ -98,6 +98,12 @@ rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
/sbin/chkconfig --add multipathd
if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \
-f /var/lib/multipath/bindings ]; then
mv /var/lib/multipath/bindings /etc/multipath/bindings
ln -s /etc/multipath/bindings /var/lib/multipath/bindings
fi
%preun
if [ "$1" = 0 ]; then