diff options
author | Dan Timoney <dt5972@att.com> | 2018-06-23 00:50:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-06-23 00:50:34 +0000 |
commit | a328da0bda02ccfbfe3a09a2f599d9a9694a6ccb (patch) | |
tree | 9239cf00b7975cd8040f5a9569ce6c2fff55936e /features/installer/src/main/resources/scripts | |
parent | ed8a53f82d780d3c8409e286bff238dc93e43e2b (diff) | |
parent | 84eab50f627a1a8c1a4362d373986718eefcecbc (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.sh | 18 |
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} |