summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavor <vorgrimmlerdavid@gmx.de>2012-08-16 18:33:54 +0200
committerdavor <vorgrimmlerdavid@gmx.de>2012-08-16 18:33:54 +0200
commit68ad87ea2ace7cebc834a053d57a5b68c64d5ee2 (patch)
tree413a0b0a649a5dfac838a4bd9a2a615d7299d689
parente5d0fcbb3e85d44686ed335a878fb241ab932dc7 (diff)
Added dataset 4S backend.
-rwxr-xr-xbin/dataset-install20
1 files changed, 5 insertions, 15 deletions
diff --git a/bin/dataset-install b/bin/dataset-install
index 464fec6..5f98ed0 100755
--- a/bin/dataset-install
+++ b/bin/dataset-install
@@ -30,11 +30,8 @@ RUBY_DIR="$HOME/.rbenv/versions/$RUBY_NUM_VER"
# # # Install
-LOG="$OT_PREFIX/tmp/`basename $0`.log"
check_utils "rbenv find"
-echo
-echo "Installation ('$LOG'):"
-echo
+check_log $SELF
if [ "$OT_BRANCH" = "development" ]; then
cmd="test -d $OT_PREFIX/opentox-server" && run_cmd "$cmd" "Opentox-server"
@@ -52,21 +49,14 @@ fi
echo
install_with_bundler
+cmd="$OT_PREFIX/4S/bin/4s-backend-setup $SELF" && run_cmd "$cmd" "Create '$SELF' 4store backend"
+
# config
[ -f $OT_CONFIG_DIR/config/$SELF.rb ] || touch $OT_CONFIG_DIR/config/$SELF.rb
+if ! cat "$OT_CONFIG_DIR/config/$SELF.rb" | grep "four_store">/dev/null 2>&1; then echo '$four_store = { :uri => "http://localhost:9083", :user => "", :password => "" }' >> $OT_CONFIG_DIR/config/$SELF.rb; fi
if ! cat "$OT_DEFAULT_CONF" | grep "$SELF">/dev/null 2>&1; then echo '$dataset = { :uri => "http://localhost:8083/dataset" }' >> $OT_DEFAULT_CONF; fi
-echo
-echo "Installation finished."
-echo
-echo "IMPORTANT: How to configure your system:"
-echo "IMPORTANT: a) Include '$OT_UI_CONF' in shell startup (e.g. ~/.bashrc)."
-echo "IMPORTANT: b) Manually source '$OT_UI_CONF' every time."
-echo "IMPORTANT: The command in both cases: '. $OT_UI_CONF'"
-echo "IMPORTANT: NOW would be the best time to configure!"
-echo
-echo "Thank you for your attention."
-echo
+notify
# return to wd
cd "$DIR"