diff options
-rw-r--r-- | priv/templates/extended_bin.dtl | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index 26c18b6..807116b 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -54,34 +54,25 @@ relx_start_command() { "$START_OPTION" } -# Use $CWD/vm.args if exists, otherwise releases/APP_VSN/vm.args, or else etc/vm.args +# Use $CWD/vm.args if exists, otherwise releases/VSN/vm.args if [ -z "$VMARGS_PATH" ]; then if [ -f "$RELEASE_ROOT_DIR/vm.args" ]; then VMARGS_PATH="$RELEASE_ROOT_DIR/vm.args" USE_DIR="$RELEASE_ROOT_DIR" else - USE_DIR="$REL_DIR" - if [ -f "$REL_DIR/vm.args" ]; then - VMARGS_PATH="$REL_DIR/vm.args" - else - VMARGS_PATH="$REL_DIR/vm.args" - fi + USE_DIR="$REL_DIR" + VMARGS_PATH="$REL_DIR/vm.args" fi fi # Make sure log directory exists mkdir -p "$RUNNER_LOG_DIR" -# Use releases/VSN/sys.config if it exists otherwise use etc/app.config if [ -z "$CONFIG_PATH" ]; then if [ -f "$USE_DIR/sys.config" ]; then CONFIG_PATH="$USE_DIR/sys.config" else - if [ -f "$REL_DIR/sys.config" ]; then - CONFIG_PATH="$REL_DIR/sys.config" - else - CONFIG_PATH="$REL_DIR/app.config" - fi + CONFIG_PATH="$REL_DIR/sys.config" fi fi |