Skip to content

Commit 42f83e3

Browse files
committed
Update install.sh
set allow_mult = false for rekon's bucket
1 parent ecfdde2 commit 42f83e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ echo "Installing rekon to $node..."
1414

1515
base_dir="`dirname $0`/app"
1616

17+
# set allow_mult = false for rekon's bucket
18+
curl -X PUT -H "Content-Type: application/json" -d '{"props":{"allow_mult":false}}' $riak_url/props
19+
1720
# loop through everything in the app directory and put in in the rekon bucket
1821
for f in $(ls $base_dir); do
1922
# echo "Uploading $f to riak"
@@ -38,7 +41,7 @@ for f in $(ls $base_dir); do
3841
;;
3942
esac
4043

41-
curl -X PUT -H"Content-Type: $content_type" $riak_url/keys/$f --data-binary @$base_dir/$f
44+
curl -X PUT -H "Content-Type: $content_type" $riak_url/keys/$f --data-binary @$base_dir/$f
4245
done
4346

4447
echo "Installed, now visit: $riak_url/keys/go"

0 commit comments

Comments
 (0)