From a253c609e89e75c49a4ff3524de7268b2c051d2c Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Tue, 31 Jul 2018 09:39:35 -0700 Subject: Bug fix in robot VM install script Change-Id: I057181b9da353ab51b7bd4ce2275b67c3ea89ef2 Issue-ID: INT-605 Signed-off-by: Gary Wu --- boot/robot_install.sh | 10 +++++----- boot/robot_serv.sh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/boot/robot_install.sh b/boot/robot_install.sh index b19faac9..827b2ce4 100644 --- a/boot/robot_install.sh +++ b/boot/robot_install.sh @@ -1,13 +1,10 @@ -#!/bin/bash +#!/bin/bash -x # Read configuration files ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) -CODE_REPO=$(cat /opt/config/remote_repo.txt) -HEAT_CODE_REPO=http://gerrit.onap.org/r/demo.git HTTP_PROXY=$(cat /opt/config/http_proxy.txt) HTTPS_PROXY=$(cat /opt/config/https_proxy.txt) @@ -63,8 +60,11 @@ apt-get install -y apt-transport-https ca-certificates wget git ntp ntpdate make # Download scripts from Nexus unzip -p -j /opt/boot-$ARTIFACTS_VERSION.zip robot_vm_init.sh > /opt/robot_vm_init.sh +chmod +x /opt/robot_vm_init.sh unzip -p -j /opt/boot-$ARTIFACTS_VERSION.zip robot_serv.sh > /opt/robot_serv.sh +chmod +x /opt/robot_serv.sh unzip -p -j /opt/boot-$ARTIFACTS_VERSION.zip imagetest.sh > /opt/imagetest.sh +chmod +x /opt/imagetest.sh mkdir -p /opt/eteshare/config unzip -p -j /opt/boot-$ARTIFACTS_VERSION.zip robot/integration_preload_parameters.py > /opt/eteshare/config/integration_preload_parameters.py @@ -78,7 +78,7 @@ chmod +x /opt/demo.sh mkdir -p /opt/eteshare/logs -mv /opt/robot_serv.sh /etc/init.d +cp /opt/robot_serv.sh /etc/init.d update-rc.d robot_serv.sh defaults # Download and install docker-engine diff --git a/boot/robot_serv.sh b/boot/robot_serv.sh index 656b9afb..75934f4e 100644 --- a/boot/robot_serv.sh +++ b/boot/robot_serv.sh @@ -1,6 +1,6 @@ #!/bin/sh ### BEGIN INIT INFO -# Provides: +# Provides: onap-testsuite # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 -- cgit 1.2.3-korg