aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-09-30 14:57:30 -0700
committerTristan Sloughter <[email protected]>2013-09-30 14:57:30 -0700
commit37bd98ad70d5f53b6cf8f31cb5f08506ead68124 (patch)
treeaaf54c210a230ca0d282161de35188feaf5aa3b0 /src
parent0ebd6efef57735a5915171cad2dd39c9c409772f (diff)
parentad6fdf411ef425f77c113d1f54e82321c2846689 (diff)
downloadrelx-37bd98ad70d5f53b6cf8f31cb5f08506ead68124.tar.gz
relx-37bd98ad70d5f53b6cf8f31cb5f08506ead68124.tar.bz2
relx-37bd98ad70d5f53b6cf8f31cb5f08506ead68124.zip
Merge pull request #60 from n-clark/runner
Fixed REMSH var to be properly defined in generated runner bash script
Diffstat (limited to 'src')
-rw-r--r--src/rlx_prv_assembler.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index 9369f5d..d0bbc8d 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -740,9 +740,6 @@ if [ -z \"$COOKIE_ARG\" ]; then
exit 1
fi
-# Setup remote shell command to control node
-REMSH=\"$ERTS_PATH/erl $REMSH_NAME_ARG $REMSH_REMSH_ARG $COOKIE_ARG\"
-
find_erts_dir
find_sys_config
export ROOTDIR=$RELEASE_ROOT_DIR
@@ -753,8 +750,11 @@ export LD_LIBRARY_PATH=$ERTS_DIR/lib
cd $ROOTDIR
+# Setup remote shell command to control node
+REMSH=\"$BINDIR/erl $REMSH_NAME_ARG $REMSH_REMSH_ARG $COOKIE_ARG\"
+
# Setup command to control the node
-NODETOOL=\"$ERTS_DIR/bin/escript $ERTS_DIR/bin/nodetool $NAME_ARG $COOKIE_ARG\"
+NODETOOL=\"$BINDIR/escript $BINDIR/nodetool $NAME_ARG $COOKIE_ARG\"
# Check the first argument for instructions
case \"$1\" in
@@ -782,7 +782,7 @@ case \"$1\" in
HEART_COMMAND=\"$SCRIPT_DIR/bin/$REL_NAME $HEART_OPTION $RUN_PARAM\"
export HEART_COMMAND
mkdir -p $PIPE_DIR
- $ERTS_DIR/bin/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR \"exec $RELEASE_ROOT_DIR/bin/$REL_NAME $START_OPTION $RUN_PARAM\" 2>&1
+ $BINDIR/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR \"exec $RELEASE_ROOT_DIR/bin/$REL_NAME $START_OPTION $RUN_PARAM\" 2>&1
;;
stop)
@@ -851,7 +851,7 @@ case \"$1\" in
fi
shift
- exec $ERTS_DIR/bin/to_erl $PIPE_DIR
+ exec $BINDIR/to_erl $PIPE_DIR
;;
remote_console)
@@ -886,7 +886,7 @@ case \"$1\" in
node_name=`echo $NAME_ARG | awk '{print $2}'`
erlang_cookie=`echo $COOKIE_ARG | awk '{print $2}'`
- exec $ERTS_DIR/bin/escript $ERTS_DIR/bin/install_upgrade.escript $REL_NAME $node_name $erlang_cookie $2
+ exec $BINDIR/escript $BINDIR/install_upgrade.escript $REL_NAME $node_name $erlang_cookie $2
;;
console|console_clean|console_boot)