summaryrefslogtreecommitdiff
path: root/opentox-webservices.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-01 15:19:04 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-01 15:19:04 +0200
commit457b352dc5cdb01f8f7ff0e1587a4e0df0a4eb93 (patch)
treec8c40cb28583a5ab8ea6a3c522de24228b9337ce /opentox-webservices.sh
parent1bca6beb732e7f5d19a1c49187fc56210b61bae0 (diff)
Removing existing dirs
Diffstat (limited to 'opentox-webservices.sh')
-rwxr-xr-xopentox-webservices.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/opentox-webservices.sh b/opentox-webservices.sh
index 304c8b2..0cb69c2 100755
--- a/opentox-webservices.sh
+++ b/opentox-webservices.sh
@@ -34,21 +34,16 @@ DIR=`pwd`
mkdir -p "$WWW_DEST/opentox" >>$LOG 2>&1
cd "$WWW_DEST/opentox" >>$LOG 2>&1
for s in compound dataset algorithm model toxcreate task; do
+ rm -rf "$s" >>$LOG 2>&1
git clone "git://github.com/opentox/$s.git" "$s" >>$LOG 2>&1
-
cd "$s" >>$LOG 2>&1
-
- git checkout -t origin/master>>$LOG 2>&1
-
+ git checkout -t origin/$OT_BRANCH >>$LOG 2>&1
rm -rf public >>$LOG 2>&1
mkdir public >>$LOG 2>&1
-
mypath_from="$WWW_DEST/opentox/$s/public"
mypath_to="$WWW_DEST/$s"
cmd="ln -sf \"$mypath_from\" \"$mypath_to\"" && run_cmd "$cmd" "Linking $s"
-
cd - >>$LOG 2>&1
-
done
# validation service