You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@heron.apache.org by GitBox <gi...@apache.org> on 2018/04/18 06:22:52 UTC

[GitHub] kramasamy closed pull request #2862: improving nomad launch script

kramasamy closed pull request #2862: improving nomad launch script
URL: https://github.com/apache/incubator-heron/pull/2862
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/heron/config/src/yaml/conf/nomad/heron_nomad.sh b/heron/config/src/yaml/conf/nomad/heron_nomad.sh
index 826ba0d326..8524702647 100644
--- a/heron/config/src/yaml/conf/nomad/heron_nomad.sh
+++ b/heron/config/src/yaml/conf/nomad/heron_nomad.sh
@@ -7,6 +7,11 @@ CORE_RELEASE_FILE="heron-core.tar.gz"
 CORE_RELEASE_DIR="heron-core"
 TOPOLOGY_PACKAGE_FILE="topology.tar.gz"
 
+# remove directory if already exists
+if [ -d "$HERON_NOMAD_WORKING_DIR" ]; then
+  rm -rf $HERON_NOMAD_WORKING_DIR
+fi
+
 # Create working directory if it does not exist
 mkdir -p ${HERON_NOMAD_WORKING_DIR}
 
diff --git a/heron/config/src/yaml/conf/standalone/heron_nomad.sh b/heron/config/src/yaml/conf/standalone/heron_nomad.sh
index 826ba0d326..8524702647 100644
--- a/heron/config/src/yaml/conf/standalone/heron_nomad.sh
+++ b/heron/config/src/yaml/conf/standalone/heron_nomad.sh
@@ -7,6 +7,11 @@ CORE_RELEASE_FILE="heron-core.tar.gz"
 CORE_RELEASE_DIR="heron-core"
 TOPOLOGY_PACKAGE_FILE="topology.tar.gz"
 
+# remove directory if already exists
+if [ -d "$HERON_NOMAD_WORKING_DIR" ]; then
+  rm -rf $HERON_NOMAD_WORKING_DIR
+fi
+
 # Create working directory if it does not exist
 mkdir -p ${HERON_NOMAD_WORKING_DIR}
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services