#!/bin/bash

echo "Remove virtualenv..."
rm -rf venv

echo "Drop database and user..."
if psql ${DB_NAME} -c '' 2>&1; then
    echo "database ${DB_NAME} exists"
    dropdb ${DB_NAME}
fi
if psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='${DB_ROLE}'" | grep -q 1; then 
    echo "role ${DB_ROLE} exists"
    dropuser ${DB_ROLE}
fi
#!/bin/bash

echo "Remove virtualenv..."
echo "===================="
rm -rf venv
echo ""

echo "Drop database and user..."
echo "========================="
./src/postgresql/clean_postgres_db.sh
Add reference to script to clean postgres db in clean galaxy script
Add reference to script to clean postgres db in clean galaxy script
