From a0706e46bc9b976afe80a0a8c0bbcc595f6b0b63 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 31 Mar 2019 20:09:34 -0600 Subject: RUNNER_LOG_DIR is only used in 'start' so only make it there (#699) --- priv/templates/extended_bin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 7e6dd29..76d2d38 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -457,9 +457,6 @@ esac # Export the variable so that it's available in the 'eval' calls export NAME -# 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/}" @@ -511,6 +508,9 @@ case "$1" in exit 1 fi + # Make sure log directory exists + mkdir -p "$RUNNER_LOG_DIR" + relx_run_hooks "$PRE_START_HOOKS" "$BINDIR/run_erl" -daemon "$PIPE_DIR" "$RUNNER_LOG_DIR" \ "exec \"$RELEASE_ROOT_DIR/bin/$REL_NAME\" \"$START_OPTION\" $ARGS --relx-disable-hooks" -- cgit v1.2.3