Add feature aggregator for sdnc-northbound
[sdnc/northbound.git] / features / installer / src / main / resources / scripts / install-feature.sh
1 #!/bin/bash
2
3 ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
4 ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client}
5 INSTALLERDIR=$(dirname $0)
6
7 REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip
8
9 if [ -f ${REPOZIP} ]
10 then
11         unzip -d ${ODL_HOME} ${REPOZIP}
12 else
13         echo "ERROR : repo zip ($REPOZIP) not found"
14         exit 1
15 fi
16
17 ${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories}
18 ${ODL_KARAF_CLIENT} feature:install ${features.boot}