summaryrefslogtreecommitdiff
path: root/opentox-webservices.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-03-31 10:43:26 +0200
committerAndreas Maunz <andreas@maunz.de>2011-03-31 10:43:26 +0200
commit409c38da02f6ad65aa41fedf8e8e28a8922e97d7 (patch)
tree9efcbddc246932a5b984929a6c67dc16c1c3e78d /opentox-webservices.sh
parentd94a37976020ba9a142522b8da2a09a87577be6f (diff)
opentox-webservices.sh
Diffstat (limited to 'opentox-webservices.sh')
-rwxr-xr-xopentox-webservices.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/opentox-webservices.sh b/opentox-webservices.sh
index c7c3b78..6f82096 100755
--- a/opentox-webservices.sh
+++ b/opentox-webservices.sh
@@ -17,6 +17,8 @@ if [ ! -e "$WGET" ]; then
fi
source ./config.sh
+source ./utils.sh
+LOG="/tmp/`basename $0`-log.txt"
echo "This installs Opentox webservices."
echo "Press <Return> to continue, or <Ctrl+C> to abort."
@@ -24,7 +26,7 @@ read
DIR=`pwd`
-mkdir -p "$WWW_DEST/opentox"
+mkdir -p "$WWW_DEST/opentox" >>$LOG 2>&1
cd "$WWW_DEST/opentox"
for s in compound dataset algorithm model toxcreate task; do
git clone "git://github.com/opentox/$s.git" "$s"
@@ -44,10 +46,10 @@ done
#ln -s /var/www/opentox/validation/public /var/www/validation
# fminer etc
-cd $WWW_DEST/opentox/algorithm
+cd $WWW_DEST/opentox/algorithm >>$LOG 2>&1
echo "Need root password:"
-sudo updatedb
-rake fminer:install
+sudo updatedb >>$LOG 2>&1
+rake fminer:install >>$LOG 2>&1
cd "$DIR"
echo