diff options
author | ist <ist@ISTdebian64.(none)> | 2012-08-03 11:51:43 +0200 |
---|---|---|
committer | ist <ist@ISTdebian64.(none)> | 2012-08-03 11:51:43 +0200 |
commit | b8c44f7ef95dcba6261376930fe1c55a53b178bc (patch) | |
tree | fc4922ddc4d48985b7b5660a6bfe86891fffad97 /utils.sh | |
parent | 829d4145e413f75f7e1986d6091859c4b77de563 (diff) |
Added package lists. Added service installer.
Diffstat (limited to 'utils.sh')
-rwxr-xr-x | utils.sh | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -93,6 +93,30 @@ install_with_bundler() { cmd="bundle install" && run_cmd "$cmd" "Install using bundler" } +# download opentox git repo +ot_git_download(){ + printf "\n%50s\n" "GIT DOWNLOAD" + check_utils "git" + cd $OT_PREFIX + 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" + local DIR=`pwd` + cd $OT_PREFIX + ot_git_download + cd $SERVICE + git checkout development + case "$SERVICE" in + opentox-server) install_with_bundler;; + opentox-client) 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 |