diff options
author | 2018-06-23 00:51:01 +0000 | |
---|---|---|
committer | 2018-06-23 00:51:01 +0000 | |
commit | 329ddc02f970a666e2a18dea1631ad6fbbe4e60d (patch) | |
tree | 433c06cd308d02ba73800fb1a5f97017fc904365 /features/installer/src/main/resources/scripts/install-feature.sh | |
parent | ee1a5318d57e8ab435ef2f298b999642ae9143f4 (diff) | |
parent | e8670e23820ae4d648b88c050b46add498303a9f (diff) |
Merge "Add feature aggregator"
Diffstat (limited to 'features/installer/src/main/resources/scripts/install-feature.sh')
-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 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} |