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:
parent
c7ea1a3b8d
commit
0499e0d2c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user