Fix failing scriptlets when CIMOM is not running

This commit is contained in:
Vitezslav Crhonek 2014-03-24 14:05:05 +01:00
parent a8638b9575
commit 051435bf3a

View File

@ -4,7 +4,7 @@
Name: sblim-gather
Version: 2.2.8
Release: 6%{?dist}
Release: 7%{?dist}
Summary: SBLIM Gatherer
Group: Applications/System
@ -218,7 +218,7 @@ fi
if [ $1 -gt 1 ]
then
%{_datadir}/%{name}/provider-register.sh -t pegasus -d \
-r %{GATHER_REGISTRATION} -m %{GATHER_SCHEMA} &> /dev/null
-r %{GATHER_REGISTRATION} -m %{GATHER_SCHEMA} &> /dev/null || :;
# don't let registration failure when server not running fail upgrade!
fi
@ -239,13 +239,16 @@ fi
if [ $1 -eq 0 ]
then
%{_datadir}/%{name}/provider-register.sh -t pegasus -d \
-r %{GATHER_REGISTRATION} -m %{GATHER_SCHEMA} > /dev/null
-r %{GATHER_REGISTRATION} -m %{GATHER_SCHEMA} &> /dev/null || :;
# don't let registration failure when server not running fail erase!
fi
%postun provider -p /sbin/ldconfig
%changelog
* Mon Mar 24 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.8-7
- Fix failing scriptlets when CIMOM is not running
* Mon Mar 17 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.8-6
- Fix multilib conflicts