#!/bin/bash

#INSTALL_ROOT
#PACKAGE_ROOT

# exit code: 0 OK; 1 invaid; 2 old version; 3 other

TARGET_VERSION=6.0.4

MLOCAL_VERSION=`$INSTALL_ROOT/bin/packman.mgr -V mgrlocal | cut -d' ' -f 1`

echo $MLOCAL_VERSION | grep -q "^$TARGET_VERSION"
if [ $? -ne 0 ]; then
	exit 3
else
	exit 0
fi
