Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated downloader, installer and readme
- Loading branch information
1 parent
b9c18e6
commit 4d343eb
Showing
3 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,52 @@ | ||
#!/bin/sh | ||
|
||
# Allow overriding the target install node | ||
if [ -z "$node" ] ; then | ||
node='127.0.0.1:8098' | ||
fi | ||
|
||
echo | ||
echo "Begining Install..." | ||
echo "Downloading Rekon" | ||
echo "Begining Install into $node..." | ||
echo "Downloading Rekon from Github" | ||
|
||
# Download the github tarbal to the /tmp directory | ||
curl -L -s https://github.com/adamhunter/rekon/tarball/master > /tmp/rekon.tar.gz | ||
|
||
echo | ||
echo "Download Completed" | ||
echo "Extracting Source" | ||
|
||
# Clean up from previously installed versions | ||
rm -rf /tmp/extract-rekon /tmp/rekon | ||
|
||
# Setup directories for extraction and running installer | ||
mkdir /tmp/extract-rekon /tmp/rekon | ||
|
||
# Unzip rekon into extraction directory | ||
tar xzf /tmp/rekon.tar.gz -C /tmp/extract-rekon | ||
|
||
# Move crazy gitub adamhunter-sha directory to standardized path | ||
mv -f /tmp/extract-rekon/*/* /tmp/rekon/ | ||
echo | ||
cd /tmp/rekon | ||
/tmp/rekon/install.sh | ||
cd - | ||
|
||
# Run downloaded installer script | ||
/tmp/rekon/install.sh $node; | ||
|
||
# Clean up after the install | ||
rm -rf /tmp/extract-rekon /tmp/rekon | ||
|
||
echo | ||
echo "Install Completed!" | ||
|
||
if [ $OSTYPE == 'darwin10.0' ]; then | ||
echo "Opening http://127.0.0.1:8098/riak/rekon/go#/buckets" | ||
open "http://127.0.0.1:8098/riak/rekon/go#/buckets" | ||
# if we are macking OSX, use open to take the user to rekon | ||
echo "Opening http://$node/riak/rekon/go#/buckets" | ||
open "http://$node/riak/rekon/go#/buckets" | ||
else | ||
echo | ||
echo "Visit http://127.0.0.1:8098/riak/rekon/go in your browser" | ||
echo "************************************************" | ||
echo "Visit http://$node/riak/rekon/go in your browser" | ||
echo "************************************************" | ||
fi | ||
|
||
# Lets get a newline before we return to the prompt | ||
echo |
This file contains 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