diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2017-11-13 03:31:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-11-13 03:31:12 +0000 |
commit | 228acfeb6ce8ecf4c00b461779571af7fac72a38 (patch) | |
tree | 1ad4f9672367550ccf8ef0119eb18b8141b48046 | |
parent | 18871eb03137ad788d238b92dd0244d5cbaa38e7 (diff) | |
parent | 2db1c470b0b5923273673a43c2d294fd421dc2b1 (diff) |
Merge "Update ant script to add +x for onap.sh" into release-1.1.0
-rw-r--r-- | deployment/zip/installer/cli-init.sh | 17 | ||||
-rw-r--r-- | deployment/zip/pom.xml | 10 |
2 files changed, 26 insertions, 1 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 diff --git a/deployment/zip/pom.xml b/deployment/zip/pom.xml index c9d10f31..c7c0fc73 100644 --- a/deployment/zip/pom.xml +++ b/deployment/zip/pom.xml @@ -73,6 +73,13 @@ exclude(name: "**/.gitignore") } } + + ant.copy(todir: "${deployUnzip}") { + fileset(file: "${basedir}/installer/cli-init.sh") + } + ant.chmod(file: "${deployUnzip}/bin/onap.sh", perm: "ugo+x") + ant.chmod(file: "${deployUnzip}/cli-init.sh", perm: "ugo+x") + ant.copy(todir: "${deployUnzip}/lib") { fileset(file: @@ -102,7 +109,8 @@ } ant.zip(destfile: "${deployFolder}/${outfileName}") { - fileset(dir: "${deployUnzip}") + zipfileset(dir: "${deployUnzip}", excludes: "**/*.sh") + zipfileset(dir: "${deployUnzip}", includes: "**/*.sh", filemode: "755") } System.out.println("******** completed. ************") </source> |