aboutsummaryrefslogtreecommitdiffstats
path: root/features/installer/src/main
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-07-17 11:23:42 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-07-17 13:17:04 -0400
commitc9b19bb98a7dd857522524b40227bb6ef74b4dec (patch)
treebc1c3c8fba0d6b766c09a475ac0ede5d79655d3d /features/installer/src/main
parent5cf9db88d1070be553fec311c9a84b5f9ec5d5c9 (diff)
Add feature aggregator for sdnc-northbound
Add feature aggregator sdnc-northbound-all to install all features from SDNC northbound repo. Change-Id: Ibe74a5d1880fb3c62d535a7367327a1bef610c19 Issue-ID: SDNC-393 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'features/installer/src/main')
-rw-r--r--features/installer/src/main/resources/scripts/install-feature.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/features/installer/src/main/resources/scripts/install-feature.sh b/features/installer/src/main/resources/scripts/install-feature.sh
new file mode 100644
index 00000000..e16e79a1
--- /dev/null
+++ b/features/installer/src/main/resources/scripts/install-feature.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
+ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client}
+INSTALLERDIR=$(dirname $0)
+
+REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip
+
+if [ -f ${REPOZIP} ]
+then
+ unzip -d ${ODL_HOME} ${REPOZIP}
+else
+ echo "ERROR : repo zip ($REPOZIP) not found"
+ exit 1
+fi
+
+${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories}
+${ODL_KARAF_CLIENT} feature:install ${features.boot}