summaryrefslogtreecommitdiff
path: root/bin/opentox-client-install
diff options
context:
space:
mode:
Diffstat (limited to 'bin/opentox-client-install')
-rwxr-xr-xbin/opentox-client-install63
1 files changed, 0 insertions, 63 deletions
diff --git a/bin/opentox-client-install b/bin/opentox-client-install
deleted file mode 100755
index 125db43..0000000
--- a/bin/opentox-client-install
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-# Installs Opentox Webservice.
-# Author: Christoph Helma, Andreas Maunz.
-
-SELF=$(basename $0 -install)
-[ "`id -u`" = "0" ] && echo "This script must be run as non-root." 1>&2 && exit 1
-
-SILENT=false
-if [ -n "$1" ]
-then
- if [ "$1" = "silent" ]
- then
- SILENT=true
- fi
-fi
-
-if [ $SILENT = false ]; then
- echo
- echo "Welcome to service installation (<Return> to continue)."
- read delete_me
-fi
-
-# check wd is root of service
-DIR=`pwd`
-if echo $DIR | grep "$SELF/bin" >/dev/null 2>&1 ; then cd ..; fi
-
-# # # Boot the script
-
-# load base config, helper funs, environment
-OT_CONFIG_DIR="$HOME/.opentox"
-! [ -f "$OT_CONFIG_DIR/config/install/config.sh" ] && echo "config.sh not found." 1>&2 && exit 1 || . $OT_CONFIG_DIR/config/install/config.sh
-! [ -f "$OT_PREFIX/install/utils.sh" ] && echo "utils.sh not found." 1>&2 && exit 1 || . $OT_PREFIX/install/utils.sh
-[ -f $OT_CONFIG_DIR/opentox-ui.sh ] && . $OT_CONFIG_DIR/opentox-ui.sh # should have been done by user already
-RUBY_DIR="$HOME/.rbenv/versions/$RUBY_NUM_VER"
-
-
-# config
-[ -f $OT_CONFIG_DIR/config/$SELF.rb ] || touch $OT_CONFIG_DIR/config/$SELF.rb
-if ! cat "$OT_CONFIG_DIR/config/$SELF.rb" | grep "default.rb">/dev/null 2>&1; then echo 'require_relative "default.rb"' >> $OT_CONFIG_DIR/config/$SELF.rb; fi
-
-
-# # # Install
-
-check_utils "rbenv find"
-check_log $SELF
-
-# Adjust ruby version here!
-RUBY_NUM_VER="2.0.0-p481"
-
-# ruby
-install_ruby
-
-# self
-echo
-install_with_bundler
-
-if [ $SILENT = false ]; then
- notify
-fi
-
-# return to wd
-cd "$DIR"