summaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/installer/src/main/scripts/install.sh31
1 files changed, 7 insertions, 24 deletions
diff --git a/platform-logic/installer/src/main/scripts/install.sh b/platform-logic/installer/src/main/scripts/install.sh
index 2c32e93a..36bf0702 100644
--- a/platform-logic/installer/src/main/scripts/install.sh
+++ b/platform-logic/installer/src/main/scripts/install.sh
@@ -23,32 +23,15 @@
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
+echo "Load and activate started at $(date)"
+start=$(date +%s.%N)
-# 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 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 $module $rpc $version $mode"
- $BASEDIR/bin/svclogic.sh activate $module $rpc $version $mode $BASEDIR/config/svclogic.properties
- done < $graphlist
-done
-
-
+$BASEDIR/bin/svclogic.sh install $BASEDIR $BASEDIR/config/svclogic.properties
+end=$(date +%s.%N)
+echo "Load and activate from $curdir finished at $(date)"
+runtime=$(python -c "print(${end} - ${start})")
+echo "Load and activate took $runtime seconds"