forked from jmchilton/galaxy-central
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tool_shed.sh
37 lines (33 loc) · 1.13 KB
/
run_tool_shed.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
#!/bin/sh
cd `dirname $0`
SAMPLES="
tool_shed_wsgi.ini.sample
datatypes_conf.xml.sample
external_service_types_conf.xml.sample
migrated_tools_conf.xml.sample
reports_wsgi.ini.sample
shed_tool_conf.xml.sample
tool_conf.xml.sample
shed_tool_data_table_conf.xml.sample
tool_data_table_conf.xml.sample
tool_sheds_conf.xml.sample
openid_conf.xml.sample
universe_wsgi.ini.sample
tool-data/shared/ncbi/builds.txt.sample
tool-data/shared/ensembl/builds.txt.sample
tool-data/shared/ucsc/builds.txt.sample
tool-data/shared/ucsc/publicbuilds.txt.sample
tool-data/shared/igv/igv_build_sites.txt.sample
tool-data/shared/rviewer/rviewer_build_sites.txt.sample
tool-data/*.sample
static/welcome.html.sample
"
# Create any missing config/location files
for sample in $SAMPLES; do
file=`echo $sample | sed -e 's/\.sample$//'`
if [ ! -f "$file" -a -f "$sample" ]; then
echo "Initializing $file from `basename $sample`"
cp $sample $file
fi
done
python ./scripts/paster.py serve tool_shed_wsgi.ini --pid-file=tool_shed_webapp.pid --log-file=tool_shed_webapp.log $@