1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/conf/init/runmigration.sh
2022-03-16 14:15:42 +01:00

11 lines
278 B
Bash
Executable File

#!/bin/bash
QUAYPATH=${QUAYPATH:-"."}
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf"}
set -e
cd ${QUAYDIR:-"/"}
# Run the database migration
REVISION_HEAD=$(PYTHONPATH=${QUAYPATH:-"."} python $QUAYCONF/init/data_migration.py)
PYTHONPATH=${QUAYPATH:-"."} alembic upgrade $REVISION_HEAD