Files
galaxy/manage_db.sh
T
Nate Coraor 367ceae256 Dockerized tests need to create and activate .venv if it does not exist.
Do this by calling common_startup.sh prior to manage_db.sh in
run_test_wrapper.sh. Will require a rebuild of the testing-base image.

Also, have scripts in Galaxy root activate .venv if it exists.
2015-10-16 11:35:52 -04:00

16 lines
345 B
Bash
Executable File

#!/bin/sh
#######
# NOTE: To downgrade to a specific version, use something like:
# sh manage_db.sh downgrade --version=3 <tool_shed if using that webapp - galaxy is the default>
#######
if [ -d .venv ];
then
printf "Activating virtualenv at %s/.venv\n" $(pwd)
. .venv/bin/activate
fi
cd `dirname $0`
python ./scripts/manage_db.py $@