aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/zip/installer/cli-init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/zip/installer/cli-init.sh')
-rw-r--r--deployment/zip/installer/cli-init.sh17
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