-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·61 lines (53 loc) · 1.36 KB
/
run.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
export CELLORGANIZER=$(pwd)/cellorganizer3
export PATH=$PATH:$(pwd)/bftools
if [ $# -eq 0 ]; then
rsync -ruv tools/ galaxy/tools/
cp tool_conf.xml galaxy/config
rsync -ruv tours/*.yaml galaxy/config/plugins/tours/
cd galaxy
bash ./run.sh
fi
if [ $# -eq 1 ]; then
if [ "$1" == "install" ]; then
git submodule init
git submodule update
cd galaxy
git fetch --all
git checkout release_17.09
cd ..
cp galaxy.ini galaxy/config
cp tool_conf.xml galaxy/config
cp datatypes_conf.xml galaxy/config
rsync -ruv tool-data/ galaxy/tool-data # for future usage
cp welcome.html galaxy/static/
rsync -ruv tools/ galaxy/tools/
cp images/Mitochondria-1.png galaxy/static/images/Mitochondria-1.png
if [ -f bftools.zip ]; then
rm -fv bftools.zip
fi
wget http://downloads.openmicroscopy.org/latest/bio-formats5.6/artifacts/bftools.zip
unzip -o bftools.zip
rm -fv bftools.zip
cd galaxy
bash ./run.sh
fi
if [ "$1" == "reinstall" ]; then
rm -rfv galaxy
mkdir galaxy
git submodule init
git submodule update
cp galaxy.ini galaxy/config
cp tool_conf.xml galaxy/config
cp datatypes_conf.xml galaxy/config
rsync -ruv tool-data/ galaxy/tool-data # for future usage
cp welcome.html galaxy/static/
rsync -ruv tools/ galaxy/tools/
cd galaxy
bash ./run.sh
fi
if [ "$1" == "clean" ]; then
rm -rfv galaxy
mkdir galaxy
fi
fi