Skip to content

Commit

Permalink
Merge pull request #60 from n-clark/runner
Browse files Browse the repository at this point in the history
Fixed REMSH var to be properly defined in generated runner bash script
  • Loading branch information
tsloughter committed Sep 30, 2013
2 parents 0ebd6ef + ad6fdf4 commit 37bd98a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/rlx_prv_assembler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 37bd98a

Please sign in to comment.