aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/installer/src/main/scripts/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/installer/src/main/scripts/install.sh')
-rw-r--r--platform-logic/installer/src/main/scripts/install.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/platform-logic/installer/src/main/scripts/install.sh b/platform-logic/installer/src/main/scripts/install.sh
new file mode 100644
index 0000000..5aae115
--- /dev/null
+++ b/platform-logic/installer/src/main/scripts/install.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# BASEDIR env variable points to /opt/openecomp/appc/svclogic
+BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
+
+
+# Load directed graphs
+for graphlist in $(find $BASEDIR/graphs -name graph.versions -print)
+do
+ curdir=$(dirname $graphlist)
+
+ # Load files from directory containing graph.versions file
+ echo "Loading APP-C Directed Graphs from $curdir"
+ for file in $(ls $curdir/*.xml)
+ do
+ echo "Loading $file ..."
+ $BASEDIR/bin/svclogic.sh load $file $BASEDIR/config/svclogic.properties
+ done
+
+ # Activate directed graphs
+ while read module rpc version mode
+ do
+ echo "Activating APP-C DG $module $rpc $version $mode"
+ $BASEDIR/bin/svclogic.sh activate $module $rpc $version $mode $BASEDIR/config/svclogic.properties
+ done < <(cat $graphlist)
+done
+