blob: 921b91947ece9e01aeb1bd02811aa9dfa14a42fa [file] [log] [blame]
Nicolas Edelccb933e2018-09-11 17:19:07 +02001#!/bin/bash
2
Skip Wonnellab6c2c02017-08-14 17:47:10 -05003###
4# ============LICENSE_START=======================================================
5# ONAP : APP-C
6# ================================================================================
Patrick Brady5b817642018-03-22 15:12:48 -07007# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Skip Wonnellab6c2c02017-08-14 17:47:10 -05008# ================================================================================
9# Licensed under the Apache License, Version 2.0 (the "License");
10# you may not use this file except in compliance with the License.
11# You may obtain a copy of the License at
12#
13# http://www.apache.org/licenses/LICENSE-2.0
14#
15# Unless required by applicable law or agreed to in writing, software
16# distributed under the License is distributed on an "AS IS" BASIS,
17# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18# See the License for the specific language governing permissions and
19# limitations under the License.
20# ============LICENSE_END=========================================================
21###
22
Skip Wonnellab6c2c02017-08-14 17:47:10 -050023ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
24ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client}
Patrick Brady5b817642018-03-22 15:12:48 -070025ODL_KARAF_CLIENT_OPTS=${ODL_KARAF_CLIENT_OPTS:-""}
Skip Wonnellab6c2c02017-08-14 17:47:10 -050026INSTALLERDIR=$(dirname $0)
27
28REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip
29
30if [ -f ${REPOZIP} ]
31then
32 unzip -n -d ${ODL_HOME} ${REPOZIP}
33else
34 echo "ERROR : repo zip ($REPOZIP) not found"
35 exit 1
36fi
37
38${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories}
Patrick Brady5b817642018-03-22 15:12:48 -070039