From 7d1d81bee22a0a93f4f9590900ca9fcf81c3fd52 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 4 May 2014 16:59:19 -0500 Subject: fix comments for extended script search for vm.args and sys.config --- priv/templates/extended_bin.dtl | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'priv/templates') 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 -- cgit v1.2.3