summaryrefslogtreecommitdiff
path: root/opentox-webservices.sh
blob: d22e5f486032f6aeeb692ce7708cb01bc56a19d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

echo "Installing OpenTox webservices"
. ./config
# Create opentox system user
id opentox
if [ $? -ne 0 ] 
then
   adduser --system opentox
fi

mkdir -p /var/www/opentox
cd /var/www/opentox
for s in compound dataset algorithm model toxcreate task; do
    git clone git://github.com/helma/opentox-$s.git $s
    cd $s
    git checkout -t origin/$branch
    mkdir -p public
    ln -s /var/www/opentox/$s/public /var/www/$s
    cd -
done
git clone http://github.com/mguetlein/opentox-validation.git validation
cd validation
git checkout -t origin/$branch
cd -
cd /var/www/opentox/algorithm
rake fminer:install
chown -R opentox /var/www/opentox
cd -