aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-10-31 10:14:22 -0500
committerTristan Sloughter <[email protected]>2014-10-31 10:14:22 -0500
commit0981eb56425b0ed9e823f93c48477078c90cd5bf (patch)
treeb111bee55d09783c0a06d7ea598f7b598eb98023
parentc83bbfc5f75ca8dda074ee38962a56389387b786 (diff)
parent5fa904190ff0e70661bb23cc5ad5bdc76288e5c6 (diff)
downloadrelx-0981eb56425b0ed9e823f93c48477078c90cd5bf.tar.gz
relx-0981eb56425b0ed9e823f93c48477078c90cd5bf.tar.bz2
relx-0981eb56425b0ed9e823f93c48477078c90cd5bf.zip
Merge pull request #244 from efcasado/pipes
Add support for multiple nodes running the same release
-rw-r--r--priv/templates/extended_bin.dtl3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index abb823d..37ea504 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -9,7 +9,6 @@ REL_VSN="{{ rel_vsn }}"
ERTS_VSN="{{ erts_vsn }}"
REL_DIR="$RELEASE_ROOT_DIR/releases/$REL_VSN"
ERL_OPTS="{{ erl_opts }}"
-PIPE_DIR="${PIPE_DIR:-/tmp/erl_pipes/{{ rel_name }}/}"
RUNNER_LOG_DIR="${RUNNER_LOG_DIR:-$RELEASE_ROOT_DIR/log}"
find_erts_dir() {
@@ -122,6 +121,8 @@ case $NAME in
;;
esac
+PIPE_DIR="${PIPE_DIR:-/tmp/erl_pipes/$NAME/}"
+
# Extract the target cookie
COOKIE_ARG="$(grep '^-setcookie' "$VMARGS_PATH")"
if [ -z "$COOKIE_ARG" ]; then