Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
Created March 14, 2014 21:31
Show Gist options
  • Save ericmoritz/9557418 to your computer and use it in GitHub Desktop.
Save ericmoritz/9557418 to your computer and use it in GitHub Desktop.
for node in dev/*/etc/riak.conf; do
cat $node \
| sed "s/storage_backend = bitcask/storage_backend = leveldb/" \
| sed "s/riak_control = off/riak_control = on/" \
| sed "s/search = off/search = on/" > ${node}.1 \
mv ${node}.1 ${node};
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment