Revision 9c402ff35cfe8cdd8c65f733d4f70a37fada6cd1 authored by Thomas Mooney on 22 September 2015, 21:56:21 UTC, committed by Thomas Mooney on 22 September 2015, 21:58:51 UTC
1 parent 1212084
fill_db
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
DS_GMSCHEMA_SERVER=`genome config get ds_gmschema_server`
if ! echo "$DS_GMSCHEMA_SERVER" | grep -q apipe-test-db
then
echo "ERROR: make sure you ran genome-env before $0"
exit 1
fi
eval `genome config set-env test_filldb "dbi:Pg:$DS_GMSCHEMA_SERVER;user=genome;password=mypassword"`
#Force the environment to look up the values for the production db
for ENV in XGENOME_DS_GMSCHEMA_LOGIN XGENOME_DS_GMSCHEMA_AUTH XGENOME_DS_GMSCHEMA_SERVER;
do
unset $ENV
done
"$@"
Computing file changes ...