bug 333: install stable version of lib_osm_openvim 83/2083/5
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 23 Aug 2017 14:27:10 +0000 (16:27 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 29 Aug 2017 12:07:11 +0000 (14:07 +0200)
Change-Id: I2b15ef402c5dc8c9d93170088e0f7ff2d63dcb4e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
scripts/install-openmano.sh

index 624dce3..ac28f0d 100755 (executable)
@@ -283,7 +283,8 @@ echo -e "\n"\
     "#####        INSTALLING OVIM LIBRARY                        #####\n"\
     "#################################################################"
 su $SUDO_USER -c "git -C ${BASEFOLDER} clone ${GIT_OVIM_URL} openvim"
-[[ -z $DEVELOP ]] && su $SUDO_USER -c "git -C ${BASEFOLDER}/openvim checkout v2.0"
+LATEST_STABLE_TAG=`git -C "${BASEFOLDER}/openvim" tag -l v[0-9].* | tail -n1`
+[[ -z $DEVELOP ]] && su $SUDO_USER -c "git -C ${BASEFOLDER}/openvim checkout tags/${LATEST_STABLE_TAG}"
 
 # Install debian dependencies before setup.py
 [ "$_DISTRO" == "Ubuntu" ] && install_packages "libmysqlclient-dev"