Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 38 lines (32 sloc) 0.664 kb
f7527f4 Adam Hunter working on installer
adamhunter authored
1 #!/bin/sh
2
3 if [ -n "$1" ] ; then
4 node=$1
5 else
6 node="127.0.0.1:8098"
7 fi
8
e8cbc4d Adam Hunter so many edits
adamhunter authored
9 riak_url="http://$node/riak/rekon"
10
f7527f4 Adam Hunter working on installer
adamhunter authored
11 echo "Installing rekon to $node..."
12
13 for f in $(ls app); do
266943a Adam Hunter updating installers
adamhunter authored
14 # echo "Uploading $f to riak"
e8cbc4d Adam Hunter so many edits
adamhunter authored
15 case $f in
ebb13ef Adam Hunter refactoring so that all views are in templates to make screen switching ...
adamhunter authored
16 go | *.html )
17 content_type="text/html"
18 ;;
e8cbc4d Adam Hunter so many edits
adamhunter authored
19 *.js )
20 content_type="application/javascript"
21 ;;
22 *.css )
23 content_type="text/css"
24 ;;
25 *.png )
26 content_type="image/png"
27 ;;
f185d43 Adam Hunter added row filtering
adamhunter authored
28 *.gif )
29 content_type="image/gif"
30 ;;
e8cbc4d Adam Hunter so many edits
adamhunter authored
31 *.template )
32 content_type="application/x-sammy-template"
33 ;;
34 esac
35
36 curl -X PUT -H"Content-Type: $content_type" $riak_url/$f --data-binary @app/$f
f7527f4 Adam Hunter working on installer
adamhunter authored
37 done
Something went wrong with that request. Please try again.