diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2017-11-08 06:01:49 +0000 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2017-11-13 03:24:39 +0000 |
commit | 2db1c470b0b5923273673a43c2d294fd421dc2b1 (patch) | |
tree | 4af950811834cff707b14f0902ebc2af4c833f85 /deployment/zip/installer | |
parent | cb1fc99d7fcdc059240d6e0766df54e586ef2997 (diff) |
Update ant script to add +x for onap.sh
- Update pom file to add +x permission for onap.sh
- Add script for onap installtion
Change-Id: Ib894dd99c5d81df2b5827454d3c296b43db46c58
Issue-ID: CLI-71
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
(cherry picked from commit ab6474bc8ebfe212c0ad6c6fc6d61a97af56b9dd)
Diffstat (limited to 'deployment/zip/installer')
-rw-r--r-- | deployment/zip/installer/cli-init.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/deployment/zip/installer/cli-init.sh b/deployment/zip/installer/cli-init.sh new file mode 100644 index 00000000..16d73439 --- /dev/null +++ b/deployment/zip/installer/cli-init.sh @@ -0,0 +1,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
\ No newline at end of file |