summaryrefslogtreecommitdiffstats
path: root/platform-logic/installer/src/main/scripts/install.sh
diff options
context:
space:
mode:
authorPatrick Brady <pb071s@att.com>2017-08-01 10:30:53 -0700
committerPatrick Brady <pb071s@att.com>2017-08-01 11:11:27 -0700
commitca4025003edc76959a23d70a6604885823ee596b (patch)
tree34d816d588680c7b86d6e466101dde490b595543 /platform-logic/installer/src/main/scripts/install.sh
parent2bdca905e6f77276f46ab031b941e28f0e8e3298 (diff)
Adding new directed graphs
Added Generic_Restart and legacy_operation and updated topology_operation_all. Created VNF_DG_MAPPING.sql and added code for this sql at the end of "install.sh". Change-Id: Ib741740e8be43cda22c648215b0d7096b95ea2ed Signed-off-by: Patrick Brady <pb071s@att.com> Issue:APPC-88
Diffstat (limited to 'platform-logic/installer/src/main/scripts/install.sh')
-rw-r--r--platform-logic/installer/src/main/scripts/install.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform-logic/installer/src/main/scripts/install.sh b/platform-logic/installer/src/main/scripts/install.sh
index ddf3933..9711b70 100644
--- a/platform-logic/installer/src/main/scripts/install.sh
+++ b/platform-logic/installer/src/main/scripts/install.sh
@@ -46,3 +46,11 @@ do
done < <(cat $graphlist)
done
+MYSQL_USER=${MYSQL_USER:-sdnctl}
+MYSQL_PWD=${MYSQL_PWD:-gamma}
+MYSQL_DB=${MYSQL_DB:-sdnctl}
+MYSQL_HOST=${MYSQL_HOST:-dbhost}
+
+mysql --user=${MYSQL_USER} --password=${MYSQL_PWD} --host=${MYSQL_HOST} ${MYSQL_DB} <<-END
+SOURCE VNF_DG_MAPPING.sql
+END