aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlava Yurin <[email protected]>2013-09-23 10:25:10 +0700
committerSlava Yurin <[email protected]>2013-09-23 10:25:10 +0700
commit4a1ef26bf942c71df3c9fdd907546063818144b2 (patch)
tree661b5ca873c1f84714f259f4f5e6b780c59ff526
parentca0370134cea77ea91555db136d6a144bb1b78c6 (diff)
downloadrelx-4a1ef26bf942c71df3c9fdd907546063818144b2.tar.gz
relx-4a1ef26bf942c71df3c9fdd907546063818144b2.tar.bz2
relx-4a1ef26bf942c71df3c9fdd907546063818144b2.zip
Fix search of vm.args
-rw-r--r--src/rlx_prv_assembler.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index a61d557..27dd3c1 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -679,9 +679,9 @@ find_sys_config() {
}
# Use $CWD/vm.args if exists, otherwise releases/APP_VSN/vm.args, or else etc/vm.args
-if [ -e \"$CALLER_DIR/vm.args\" ]; then
- VMARGS_PATH=$CALLER_DIR/vm.args
- USE_DIR=$CALLER_DIR
+if [ -e \"$RELEASE_ROOT_DIR/vm.args\" ]; then
+ VMARGS_PATH=$RELEASE_ROOT_DIR/vm.args
+ USE_DIR=$RELEASE_ROOT_DIR
else
USE_DIR=$REL_DIR
if [ -e \"$REL_DIR/vm.args\" ]; then