+

Fix return code in OK case of Nagios mode

Benjamin Renard [2014-12-31 09:59:43]
Fix return code in OK case of Nagios mode
Filename
check_rc_upgrade.sh
diff --git a/check_rc_upgrade.sh b/check_rc_upgrade.sh
index 6f0ad4a..9d2a226 100755
--- a/check_rc_upgrade.sh
+++ b/check_rc_upgrade.sh
@@ -313,5 +313,5 @@ then
 	fi
 else
 	[ $DEBUG -eq 1 ] && echo "Pas de changement de version"
-	[ $NAGIOS -eq 1 ] && echo "OK : Lastest version installed" && exit 1
+	[ $NAGIOS -eq 1 ] && echo "OK : Lastest version installed" && exit 0
 fi
ViewGit