aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Rascão <[email protected]>2017-09-24 00:57:36 +0100
committerGitHub <[email protected]>2017-09-24 00:57:36 +0100
commit0715c2fca256e0b9e5e85b03c61a065de6ce81af (patch)
tree5c130c50451229b76ebbe7a4c41ff4e5be59f679
parent36e0ad410310031cab1bf83d864017f05b45b9cc (diff)
parent76f3ab093ded13fc687356968169be301c1e65d0 (diff)
downloadrelx-0715c2fca256e0b9e5e85b03c61a065de6ce81af.tar.gz
relx-0715c2fca256e0b9e5e85b03c61a065de6ce81af.tar.bz2
relx-0715c2fca256e0b9e5e85b03c61a065de6ce81af.zip
Merge pull request #608 from juhlig/patch-1
PIPE_DIR handling
-rwxr-xr-xpriv/templates/extended_bin2
1 files changed, 2 insertions, 0 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index a48a917..2580dcc 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -325,6 +325,7 @@ RELX_CONFIG_PATH=$(check_replace_os_vars sys.config $RELX_CONFIG_PATH)
# Make sure log directory exists
mkdir -p "$RUNNER_LOG_DIR"
+test -z "$PIPE_DIR" && PIPE_BASE_DIR='/tmp/erl_pipes/'
PIPE_DIR="${PIPE_DIR:-/tmp/erl_pipes/$NAME/}"
# Extract the target cookie
@@ -378,6 +379,7 @@ case "$1" in
HEART_COMMAND="$RELEASE_ROOT_DIR/bin/$REL_NAME $CMD"
export HEART_COMMAND
+ test -z "$PIPE_BASE_DIR" || mkdir -m 1777 -p "$PIPE_BASE_DIR"
mkdir -p "$PIPE_DIR"
relx_run_hooks "$PRE_START_HOOKS"