summaryrefslogtreecommitdiffstats
path: root/features/installer/src/main
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-06-22 15:51:57 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-06-22 15:51:57 -0400
commitcd11ecb3d0216e4e81be4964a4bc6a50aa29bbe7 (patch)
tree3a7a610f3557012388c162708c79cf5a37378d07 /features/installer/src/main
parenta63bbe21b7394951d782b6f8f0769dfcbc616dd0 (diff)
Add feature aggregator
Add feature aggregator ccsdk-sli-northbound-all so that all sli-northbound karaf features can be added as one feature. Change-Id: I5133215c8df472e189d1b24f5b747927f305ac28 Issue-ID: CCSDK-282 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 000000000..e16e79a12
--- /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}