diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-06-03 22:57:28 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-06-04 10:33:30 +0200 |
commit | 3440d8183bbf9c5de9bf6962a57afee0b2850431 (patch) | |
tree | 189210744210a97c3904e5d9e33f9a9dee3bef81 | |
parent | 1e342faee804924a79e5ac9a9120a327809448b3 (diff) |
Exact match name, cookie (reported-by Pablo Platt)
-rwxr-xr-x | priv/templates/simplenode.runner | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner index a2cdd79..4b1efa2 100755 --- a/priv/templates/simplenode.runner +++ b/priv/templates/simplenode.runner @@ -23,14 +23,14 @@ cd $RUNNER_BASE_DIR mkdir -p $RUNNER_LOG_DIR # Extract the target node name from node.args -NAME_ARG=`grep -e '-[s]*name' $RUNNER_ETC_DIR/vm.args` +NAME_ARG=`egrep -e '^-s?name' $RUNNER_ETC_DIR/vm.args` if [ -z "$NAME_ARG" ]; then echo "vm.args needs to have either -name or -sname parameter." exit 1 fi # Extract the target cookie -COOKIE_ARG=`grep -e '-setcookie' $RUNNER_ETC_DIR/vm.args` +COOKIE_ARG=`grep -e '^-setcookie' $RUNNER_ETC_DIR/vm.args` if [ -z "$COOKIE_ARG" ]; then echo "vm.args needs to have a -setcookie parameter." exit 1 |