Anonymous avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.