From f000e1cad7775e37da61b71773d60b40b9254478 Mon Sep 17 00:00:00 2001 From: "Areli, Fuss (af732p)" Date: Thu, 24 May 2018 11:24:40 +0300 Subject: Alignment of VVP devkit Alignment of VVP devkit include replacement of the uWsgi with gunicorn Change-Id: I9c42783c9965c5f6f005615e88899a301d334e22 Issue-ID: VVP-60 Signed-off-by: Areli, Fuss (af732p) --- setenv | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'setenv') diff --git a/setenv b/setenv index cf1273e..fd72eef 100644 --- a/setenv +++ b/setenv @@ -36,13 +36,21 @@ # ============LICENSE_END============================================ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. + +# An Option to force update of requirements in case of updated version +ARG=$1 +if [ "$1" = "-f" ]; then + echo "Param: $1" + force_option="--force" +fi + # Get the current devkit directory -pushd $(dirname $BASH_SOURCE[0]) > /dev/null -export DEVKIT_DIR=`pwd -P` -popd > /dev/null +#pushd $(dirname $BASH_SOURCE[0]) > /dev/null export DEVKIT_DIR=`pwd -P` +#popd > /dev/null +#export DEVKIT_DIR=`pwd -P` echo $DEVKIT_DIR -echo "DEVKIT DIR ^^" +#echo "DEVKIT DIR ^^" echo "# Make sure we have ansible installed" REQUIREMENTS="ansible vagrant" for req in $REQUIREMENTS @@ -69,6 +77,6 @@ done # Grab ansible requirements echo "Installing devkit's required ansible roles" echo $DEVKIT_DIR -ansible-galaxy install -r ${DEVKIT_DIR}/ansible/requirements.yml +ansible-galaxy install ${force_option} -r ${DEVKIT_DIR}/ansible/requirements.yml echo "Devkit zone setup complete" -- cgit 1.2.3-korg