aboutsummaryrefslogtreecommitdiffstats
path: root/features/installer/src/main/resources/scripts
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-06-23 00:50:54 +0000
committerGerrit Code Review <gerrit@onap.org>2018-06-23 00:50:54 +0000
commitfc45404afdc7770ffa2848b007127d9b6f682efe (patch)
tree1fc08caa86c535ceab0c5ff7f61cf743a6162709 /features/installer/src/main/resources/scripts
parenta07b57086dd5c9c04f2b20a092da9935c7c5f817 (diff)
parentcd11ecb3d0216e4e81be4964a4bc6a50aa29bbe7 (diff)
Merge "Add feature aggregator"
Diffstat (limited to 'features/installer/src/main/resources/scripts')
-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}