From e02ee6e651a5651ebb1bb6aabf8ae9342ff0e9eb Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 24 Apr 2017 13:01:45 +0200 Subject: [PATCH] Updated install-openmano to delete ovim lib folder after installation Change-Id: I32212b81f29a760117dbf3574f3c2496ea08d343 Signed-off-by: garciadeblas --- scripts/install-openmano.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh index a36d4e87..733a82ae 100755 --- a/scripts/install-openmano.sh +++ b/scripts/install-openmano.sh @@ -257,6 +257,8 @@ echo ' #################################################################' su $SUDO_USER -c "git -C ${OPENMANO_BASEFOLDER} clone ${GIT_OVIM_URL} openvim" [[ -z $DEVELOP ]] && su $SUDO_USER -c "git -C ${OPENMANO_BASEFOLDER}/openvim checkout v2.0" +trap 'rm -rf "${OPENMANO_BASEFOLDER}/openvim"' EXIT + # Install debian dependencies before setup.py [ "$_DISTRO" == "Ubuntu" ] && install_packages "libmysqlclient-dev" [ "$_DISTRO" == "CentOS" -o "$_DISTRO" == "Red" ] && install_packages "libmysqlclient-dev" #TODO check if that's the name in CentOS and RedHat -- 2.25.1