Files
galaxy/scripts/update_database/update_database_with_security_libraries.sh
T
Daniel Blankenberg 2c05491514 A script to update a pre-security/library Galaxy database with necessary schema changes and set default roles/permissions for users and their histories and datasets.
It will reset permissions on histories and datasets if they are already set (i.e. script was run on a database which already has security/library tables).

This has been tested with Postgres, SQLite, and MySQL databases.

Due to limitations of SQLite this script is unable to add foreign keys to existing SQLite tables (fks are ignored anyway).

*** Remember to backup your database before running. ***
2008-12-11 14:10:11 -05:00

10 lines
310 B
Bash

#!/bin/sh
# This script must be executed from the $UNIVERSE_HOME directory
# e.g., sh ./scripts/update_database/update_database_with_security_libraries.sh
. ./scripts/get_python.sh
. ./setup_paths.sh
$GALAXY_PYTHON ./scripts/update_database/update_database_with_security_libraries.py ./universe_wsgi.ini $@