summaryrefslogtreecommitdiffstats
path: root/features/installer/src/main
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-06-22 15:50:29 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-06-22 15:50:29 -0400
commit153b6c24886820f7f6fa1d160551f292eb4e6948 (patch)
treea6f351533cbf745c08f71c718f3b697d8ef5650e /features/installer/src/main
parentbe72a3cd156210d0e3f8fe3a0cd16993b32c248f (diff)
Add feature aggregator
Add feature aggregator ccsdk-sli-adaptors-all to install all adaptor features. Change-Id: I8e0fa515a18f62a5ca0530d79a1334942c71e5e0 Issue-ID: CCSDK-281 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}