aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/zip/installer/cli-init.sh
blob: 16d734395a4deadb6d68695639b85537997fffb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

export ONAP_CLI_HOME=/opt/onap/cli
export CLI_PRODUCT_VERSION=onap-1.1

cd $ONAP_CLI_HOME

if [ ! -d ./data ]; then mkdir ./data; fi
if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi

chmod +x ./bin/onap.sh

#Make onap available in path
ln ./bin/onap.sh /usr/bin/onap

#Print the version
onap -v