Commits

Anonymous committed 0b9fd28

I'm a little idiot, tall and stout.

Comments (0)

Files changed (4)

start-backup-dump.sh

 #  Join riak cluster <clustername> using erlcookie <cookie>
 #  via the node listening at <ip>:<port>
 #  and dump the entire cluster's contents to <dumpfilename>
-if [ $# -le 5 ]; then
+if [ $# -lt 5 ]; then
     echo Usage: 1>&2
     echo "    `basename $0` <clustername> <cookie> <ip in ring> " 1>&2
     echo "                  <doorbell port> <filename to save dump to>" 1>&2

start-backup-restore.sh

 #  Join riak cluster <clustername> using erlcookie <cookie>
 #  via the node listening at <ip>:<port>
 #  and overwrite cluster data with that contained in <dumpfilename>
-if [ $# -le 5 ]; then
+if [ $# -lt 5 ]; then
     echo Usage: 1>&2
     echo "    `basename $0` <clustername> <cookie> <ip in ring> " 1>&2
     echo "                  <doorbell port> <filename to restore from>" 1>&2
 #  Join riak cluster <clustername> using erlcookie <cookie>
 #  via the node listening at <ip>:<port>
 #  and register a riak event handler
-if [ $# -ne 7 ]; then
+if [ $# -lt 7 ]; then
     echo Usage: 1>&2
     echo "    `basename $0` <clustername> <cookie> <ip in ring> " 1>&2
     echo "                  <doorbell port> <nodename> <event module name>" 1>&2
 #!/usr/bin/env bash
 # start-join <configfile> <ip> <port>
 # join an existing riak ring via a node known to be listening on ip:port
-if [ $# -le 3 ]; then
+if [ $# -lt 3 ]; then
     echo Usage: 1>&2
     echo "    `basename $0` <config file> <ip of node in ring> <doorbell port>" 1>&2
     exit 1