remove proprietary name
[oom.git] / TOSCA / VM / so / scripts / so.sh
diff --git a/TOSCA/VM/so/scripts/so.sh b/TOSCA/VM/so/scripts/so.sh
deleted file mode 100644 (file)
index ade760f..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-
-# ============LICENSE_START==========================================
-# ===================================================================
-# Copyright (c) 2017 AT&T
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#============LICENSE_END============================================
-
-#
-PUBIP="$1"
-PVTIP="$2"
-NEXUS_REPO="$3"
-DOCKER_REPO="$4"
-NEXUS_USERNAME="$5"
-NEXUS_PASSWORD="$6"
-ARTIFACTS_VERSION="$7"
-DNS_IP="$8"
-GERRIT_BRANCH="$9"
-CLOUD_ENV="$10"
-EXETERNAL_DNS="$11"
-DMAAP_TOPIC="$12"
-OPENSTACK_USERNAME="$13"
-TENANT_ID="$14"
-OPENSTACK_API_KEY="$15"
-OPENSTACK_REGION="$16"
-KEYSTONE="$17"
-SO_REPO="$18"
-DOCKER_VERSION="$19"
-
-export HOSTNAME=`hostname`
-echo 127.0.1.1 $HOSTNAME >>/etc/hosts
-echo $PVTIP $HOSTNAME >>/etc/hosts
-echo $PUBIP $HOSTNAME >>/etc/hosts
-
-
-mkdir /opt/config
-chmod 777 /opt/config
-echo $PUBIP                                     > /opt/config/public_ip.txt
-echo $NEXUS_REPO                                > /opt/config/nexus_repo.txt
-echo $DOCKER_REPO                               > /opt/config/nexus_docker_repo.txt
-echo $NEXUS_USERNAME                            > /opt/config/nexus_username.txt
-echo $NEXUS_PASSWORD                            > /opt/config/nexus_password.txt
-echo $ARTIFACTS_VERSION                         > /opt/config/artifacts_version.txt
-echo $DNS_IP                                    > /opt/config/dns_ip_addr.txt
-echo $DOCKER_VERSION                            > /opt/config/docker_version.txt
-echo $GERRIT_BRANCH                             > /opt/config/gerrit_branch.txt
-echo $CLOUD_ENV                                 > /opt/config/cloud_env.txt
-echo $EXETERNAL_DNS                             > /opt/config/external_dns.txt
-echo $DMAAP_TOPIC                               > /opt/config/dmaap_topic.txt
-echo $OPENSTACK_USERNAME                        > /opt/config/openstack_username.txt
-echo $TENANT_ID                                 > /opt/config/tenant_id.txt
-echo $OPENSTACK_API_KEY                         > /opt/config/openstack_api_key.txt
-echo $OPENSTACK_REGION                          > /opt/config/openstack_region.txt
-echo $KEYSTONE                                  > /opt/config/keystone.txt
-echo $SO_REPO                                   > /opt/config/remote_repo.txt
-
-if [ ! -f /opt/rebooted ]; then
-       touch /opt/so_install.sh
-       chmod 777 /opt/so_install.sh
-       curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/so_install.sh -o /opt/so_install.sh
-       cd /opt
-       chmod +x so_install.sh
-       echo "  if [ ! -f /opt/rebooted ]; then" >/opt/install_tmp
-       echo "          touch /opt/rebooted">>/opt/install_tmp
-       echo "          reboot" >>/opt/install_tmp
-       echo "  fi">>/opt/install_tmp
-       sed -i -e "/\treboot/r install_tmp" -e "//d" so_install.sh
-fi
-/opt/so_install.sh > so_install.log 2>&1
\ No newline at end of file