Skip to content

Commit

Permalink
Fix create/manage db scripts to respect GALAXY_VIRTUAL_ENV.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Feb 29, 2016
1 parent 47c9318 commit 865f2d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions create_db.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh

if [ -d .venv ];
: ${GALAXY_VIRTUAL_ENV:=.venv}

if [ -d "$GALAXY_VIRTUAL_ENV" ];
then
printf "Activating virtualenv at %s/.venv\n" $(pwd)
. .venv/bin/activate
printf "Activating virtualenv at $GALAXY_VIRTUAL_ENV\n"
. "$GALAXY_VIRTUAL_ENV/bin/activate"
fi

cd `dirname $0`
Expand Down
8 changes: 5 additions & 3 deletions manage_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
# sh manage_db.sh downgrade --version=3 <tool_shed if using that webapp - galaxy is the default>
#######

if [ -d .venv ];
: ${GALAXY_VIRTUAL_ENV:=.venv}

if [ -d "$GALAXY_VIRTUAL_ENV" ];
then
printf "Activating virtualenv at %s/.venv\n" $(pwd)
. .venv/bin/activate
printf "Activating virtualenv at $GALAXY_VIRTUAL_ENV\n"
. "$GALAXY_VIRTUAL_ENV/bin/activate"
fi

cd `dirname $0`
Expand Down

0 comments on commit 865f2d4

Please sign in to comment.