diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2012-08-21 15:13:28 +0200 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2012-08-21 15:13:28 +0200 |
commit | d2a8bcd2a16aa94028131d4de25c7f8d813ebd79 (patch) | |
tree | 900ee65d65c3733c5535b03f90534d22863dae92 | |
parent | 714111145e6ac5778dc5ce2ecb3652e4bddb34d7 (diff) |
Rm service_install, better config handling, bash support.
-rw-r--r-- | ot-tools-user.sh | 7 | ||||
-rwxr-xr-x | utils.sh | 23 |
2 files changed, 5 insertions, 25 deletions
diff --git a/ot-tools-user.sh b/ot-tools-user.sh index d60a26e..047491d 100644 --- a/ot-tools-user.sh +++ b/ot-tools-user.sh @@ -2,8 +2,8 @@ # Load server config otconfig() { - source $HOME/.opentox/opentox-ui.sh - source $HOME/.opentox/config/install/config.sh + . $HOME/.opentox/config/install/config.sh + . $OT_PREFIX/install/utils.sh } # Display log @@ -77,7 +77,6 @@ otstart() { echo "usage: otstart [all|algorithm|compound|dataset|feature|model|task|validation|4store]"; return 1;; esac - sleep 1 cd $DIR } @@ -134,7 +133,6 @@ otreload() { echo "usage: otreload [all|algorithm|compound|dataset|feature|model|task|validation|4store]"; return 1;; esac - sleep 1 } # kill unicorn @@ -178,7 +176,6 @@ otkill() { echo "usage: otkill [all|algorithm|compound|dataset|feature|model|task|validation|4store]"; return 1;; esac - sleep 1 } # get service uri @@ -113,25 +113,6 @@ ot_git_download(){ cmd="$GIT clone git@github.com:opentox/$SERVICE.git" && run_cmd "$cmd" "Downloading $SERVICE git repository" } -# install opentox service -install_ot_service(){ - printf "\n%50s\n" "$SERVICE" - check_utils "git rbenv" - local DIR=`pwd` - cd $OT_PREFIX - ot_git_download - cd $SERVICE - $GIT checkout $OT_BRANCH >>$LOG 2>&1 - $RBENV local $RUBY_NUM_VER - case "$SERVICE" in - opentox-*) install_with_bundler;; - feature) install_with_bundler;; - task) install_with_bundler;; - *) cd bin; for f in `ls`; do ./$f; done;; - esac - cd $DIR -} - # emit notification if caller was the shell (the user), see http://goo.gl/grCOk notify() { echo @@ -139,11 +120,13 @@ notify() { echo if ps -o stat= -p $PPID | grep "s" >/dev/null 2>&1; then echo "IMPORTANT: How to configure your system if everything went fine:" + echo "IMPORTANT: ot-tools are supported for bash shell." echo "IMPORTANT: a) Include '$OT_TOOLS_CONF' in shell startup (e.g. ~/.bashrc)." echo "IMPORTANT: b) Manually source '$OT_TOOLS_CONF' every time." echo "IMPORTANT: The command in both cases: '. $OT_TOOLS_CONF'" + echo "IMPORTANT: If you are using another shell please source '$OT_UI_CONF'" echo "IMPORTANT: NOW would be the best time to configure!" - echo "Visit 'http://opentox.github.com/General/2012/08/09/install-opentox-development-environment/' for further information about the usage of ot-tools." + echo "Visit 'http://opentox.github.com/General/2012/08/09/install-opentox-development-environment/' for further information (e.g. the usage of ot-tools)." echo echo "Thank you for your attention." echo |