Title: [opsview] [12384] Better error if opsview-compaibility-check not upgraded too
- Revision
- 12384
- Author
- tvoon
- Date
- 2013-05-29 15:26:16 +0100 (Wed, 29 May 2013)
Log Message
Better error if opsview-compaibility-check not upgraded too
Modified Paths
Modified: trunk/opsview-web/opsview-web.spec.in
===================================================================
--- trunk/opsview-web/opsview-web.spec.in 2013-05-28 22:14:36 UTC (rev 12383)
+++ trunk/opsview-web/opsview-web.spec.in 2013-05-29 14:26:16 UTC (rev 12384)
@@ -62,7 +62,11 @@
%pre
if [ "$1" -ge 2 ] ; then
# make sure opsview-compatibility-check is installed
- rpm -q opsview-compatibility-check-%VERSION% >/dev/null || exit 1
+ rpm -q opsview-compatibility-check-%VERSION% >/dev/null
+ if [ $? != 0 ] ; then
+ echo "opsview-compatibility-check-%VERSION% not installed"
+ exit 1
+ fi
if [ -x /etc/init.d/opsview-web ] ; then
/etc/init.d/opsview-web stop
_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins