summaryrefslogtreecommitdiffstats
path: root/features/installer/src/main/resources/scripts/install-feature.sh
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2018-09-11 15:07:43 -0400
committerAlexis de Talhouët <adetalhouet89@gmail.com>2018-09-11 15:59:31 -0400
commitdc68efeb3c0ae458b6a15a8be182b5dc851a3678 (patch)
tree32bb245ccd4e4f871247a9b7bb0d662c2120be4c /features/installer/src/main/resources/scripts/install-feature.sh
parent78fc81bf6a35077b8ad80cf29b218477baa15a47 (diff)
Add ccsdk-features-all
Change-Id: Iaa2138a1e0df01ae1d9bba57ce6041e91007d350 Issue-ID: CCSDK-505 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'features/installer/src/main/resources/scripts/install-feature.sh')
-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}