aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin.dtl
diff options
context:
space:
mode:
authorEnrique Fernandez <[email protected]>2014-10-30 10:53:10 +0100
committerEnrique Fernandez <[email protected]>2014-10-30 10:53:10 +0100
commit5fa904190ff0e70661bb23cc5ad5bdc76288e5c6 (patch)
treee265df28332f67ec8cbfb29ad99d7353513acb70 /priv/templates/extended_bin.dtl
parent0b5c8714c76c10bd92463b4d2ba9431e34af650e (diff)
downloadrelx-5fa904190ff0e70661bb23cc5ad5bdc76288e5c6.tar.gz
relx-5fa904190ff0e70661bb23cc5ad5bdc76288e5c6.tar.bz2
relx-5fa904190ff0e70661bb23cc5ad5bdc76288e5c6.zip
Add support for multiple nodes running the same release
Diffstat (limited to 'priv/templates/extended_bin.dtl')
-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