- #!/bin/bash
- couchdbPeers=('192.168.64.5:30001')
- database='channel_cnsp'
- for couchdbPeer in ${couchdbPeers[@]}
- do
- for indexFile in ./indexes/*
- do
- curl -fX POST "http://$couchdbPeer/$database/_index" -H 'Content-Type: application/json' -d @$indexFile
- done
- done
|