Created
November 14, 2013 22:08
-
-
Save camshaft/7475163 to your computer and use it in GitHub Desktop.
bootstrap riak with the datatype bucket types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| : ${TYPES:="map set counter"} | |
| for TYPE in $TYPES | |
| do | |
| ./bin/riak-admin bucket-type create $TYPE '{"props": {"datatype": "'$TYPE'", "allow_mult": true}}' | |
| ./bin/riak-admin bucket-type activate $TYPE | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment