rpms/device-mapper-multipath/devel device-mapper-multipath.spec, 1.59, 1.60

Benjamin Marzinski bmarzins at fedoraproject.org
Thu Jul 30 01:34:50 UTC 2009


Author: bmarzins

Update of /cvs/pkgs/rpms/device-mapper-multipath/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18205/device-mapper-multipath/devel

Modified Files:
	device-mapper-multipath.spec 
Log Message:
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



Index: device-mapper-multipath.spec
===================================================================
RCS file: /cvs/pkgs/rpms/device-mapper-multipath/devel/device-mapper-multipath.spec,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -p -r1.59 -r1.60
--- device-mapper-multipath.spec	29 Jul 2009 22:54:06 -0000	1.59
+++ device-mapper-multipath.spec	30 Jul 2009 01:34:50 -0000	1.60
@@ -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




More information about the scm-commits mailing list