summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-03-27 15:49:40 +0200
committerAndreas Maunz <andreas@maunz.de>2012-03-27 15:49:40 +0200
commit70f1a5f0e965c48efc93c3bab9ad077aafa14c4f (patch)
treefc799d64a02fe33891088c6936387fe28eab587e
parent2f17cef0d8dfeac04ff918110020db2a241519d0 (diff)
Added RUBY_NUM_VER (service specific)
-rwxr-xr-xbin/algorithm-install10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/algorithm-install b/bin/algorithm-install
index fc494b3..5fe95de 100755
--- a/bin/algorithm-install
+++ b/bin/algorithm-install
@@ -6,6 +6,14 @@
SELF=$(basename $0 -install)
[ "`id -u`" = "0" ] && echo "This script must be run as non-root." 1>&2 && exit 1
+# Adjust ruby version here!
+RUBY_NUM_VER="1.9.3-p125"
+
+echo
+echo "Welcome to service installation (<Return> to continue)."
+read delete_me
+
+
# check wd is root of service
DIR=`pwd`
if echo $DIR | grep "algorithm/bin" >/dev/null 2>&1 ; then cd ..; fi
@@ -16,7 +24,7 @@ if echo $DIR | grep "algorithm/bin" >/dev/null 2>&1 ; then cd ..; fi
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 ] && echo "opentox-ui.sh not found." 1>&2 && exit 1 || . $OT_CONFIG_DIR/opentox-ui.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"