mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
31 lines
826 B
Bash
Executable File
31 lines
826 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd `dirname $0`
|
|
|
|
# explicitly attempt to fetch eggs before running
|
|
FETCH_EGGS=1
|
|
for arg in "$@"; do
|
|
[ "$arg" = "--stop-daemon" ] && FETCH_EGGS=0; break
|
|
done
|
|
if [ $FETCH_EGGS -eq 1 ]; then
|
|
python ./scripts/check_eggs.py quiet
|
|
if [ $? -ne 0 ]; then
|
|
echo "Some eggs are out of date, attempting to fetch..."
|
|
python ./scripts/fetch_eggs.py
|
|
if [ $? -eq 0 ]; then
|
|
echo "Fetch successful."
|
|
else
|
|
echo "Fetch failed."
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# Temporary: since builds.txt is now removed from source control, create it
|
|
# from the sample if necessary
|
|
if [ ! -f "tool-data/shared/ucsc/builds.txt" ]; then
|
|
cp tool-data/shared/ucsc/builds.txt.sample tool-data/shared/ucsc/builds.txt
|
|
fi
|
|
|
|
python ./scripts/paster.py serve universe_wsgi.ini $@
|