Don't migrate if no database configuration is up
This commit is contained in:
parent
dc7b416e57
commit
31684dd77e
@ -5,7 +5,10 @@ set -eu -o pipefail
|
|||||||
setup_db() {
|
setup_db() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
gitea migrate
|
if [ -f "/data/gitea/conf/app.ini" ]; then
|
||||||
|
echo "====> Running database migration"
|
||||||
|
gitea migrate
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_root_user() {
|
setup_root_user() {
|
||||||
|
Reference in New Issue
Block a user