summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/asdc
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/lib/asdc')
-rwxr-xr-xbootstrap/vagrant-onap/lib/asdc10
1 files changed, 6 insertions, 4 deletions
diff --git a/bootstrap/vagrant-onap/lib/asdc b/bootstrap/vagrant-onap/lib/asdc
index 0c09b0b64..bbd3d3bc5 100755
--- a/bootstrap/vagrant-onap/lib/asdc
+++ b/bootstrap/vagrant-onap/lib/asdc
@@ -32,8 +32,7 @@ function init_data_folders {
mkdir -p /data/logs/BE
mkdir -p /data/logs/FE
chmod 777 /data
- chmod 777 /data/logs/BE
- chmod 777 /data/logs/FE
+ chmod 777 /data/logs
}
# setup_docker_aliases() - Function that setups the aliases required by sdc scripts
@@ -95,8 +94,11 @@ function install_sdc {
sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \""$MR_IP_ADDR","$MR_IP_ADDR"\",/g" /data/environments/$ENV_NAME.json
sed -i "s/\"fqdn\":.*/\"fqdn\": [\""$MR_IP_ADDR"\", \""$MR_IP_ADDR"\"]/g" /data/environments/$ENV_NAME.json
- docker_openecomp_login
- bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p $NEXUS_DOCKER_PORT
+ install_docker
+ if [[ "$pull_docker_image" == "True" ]]; then
+ docker_openecomp_login
+ bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p $NEXUS_DOCKER_PORT
+ fi
}
# init_asdc() - Function that initialize SDC services