aboutsummaryrefslogtreecommitdiffstats
path: root/setenv
diff options
context:
space:
mode:
authorAreli, Fuss (af732p) <af732p@att.com>2018-05-24 11:24:40 +0300
committerAreli, Fuss (af732p) <af732p@att.com>2018-05-24 11:24:40 +0300
commitaf331643dc0af5e3fb8bebfa9efb2682e46451b8 (patch)
tree6a9415cf34eac1dc231e239aca9d7bfe63ad8048 /setenv
parent61bb1d8b6a20fec9235ca5b5af0174ad1c85aa67 (diff)
Alignment of VVP devkit
Alignment of VVP devkit Change-Id: I7c6dae29faf0a14dce4d40114bd0bc4be8e23e42 Issue-ID: VVP-60 Signed-off-by: Areli, Fuss (af732p) <af732p@att.com>
Diffstat (limited to 'setenv')
-rw-r--r--setenv18
1 files changed, 13 insertions, 5 deletions
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"