aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_assembler.erl
diff options
context:
space:
mode:
authorNick Clark <[email protected]>2013-09-29 20:11:31 -0700
committerNick Clark <[email protected]>2013-09-30 14:56:30 -0700
commitad6fdf411ef425f77c113d1f54e82321c2846689 (patch)
treeaaf54c210a230ca0d282161de35188feaf5aa3b0 /src/rlx_prv_assembler.erl
parent81b0d55be6ee3f57b36a013db2336f1fd29a5aee (diff)
downloadrelx-ad6fdf411ef425f77c113d1f54e82321c2846689.tar.gz
relx-ad6fdf411ef425f77c113d1f54e82321c2846689.tar.bz2
relx-ad6fdf411ef425f77c113d1f54e82321c2846689.zip
Fixed REMSH var to be properly defined in generated runner bash script. Cleaned up instances of ERTS_DIR/bin to use BINDIR instead.
Diffstat (limited to 'src/rlx_prv_assembler.erl')
-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)