Don't migrate if no database configuration is up

This commit is contained in:
Luke Murphy 2020-03-12 17:54:11 +01:00
parent dc7b416e57
commit 31684dd77e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -5,7 +5,10 @@ set -eu -o pipefail
setup_db() {
set -eu
gitea migrate
if [ -f "/data/gitea/conf/app.ini" ]; then
echo "====> Running database migration"
gitea migrate
fi
}
setup_root_user() {