A release that mounted app.ini directly as a read-only swarm config leaves a 0-byte placeholder at /etc/gitea/app.ini in the reattached config volume on upgrade; the original seed guard (! -f) treated that as present and skipped, so Gitea booted the install wizard on an empty config (/api/v1/version 404). Guard on ! -s (missing OR empty) so the rendered config is seeded; bump DOCKER_SETUP_SH_VERSION so the corrected entrypoint deploys (immutable swarm configs).
16 lines
263 B
Bash
16 lines
263 B
Bash
export APP_INI_VERSION=v22
|
|
export DOCKER_SETUP_SH_VERSION=v3
|
|
export PG_BACKUP_VERSION=v1
|
|
|
|
abra_backup_app() {
|
|
_abra_backup_dir "app:/var/lib/gitea"
|
|
}
|
|
|
|
abra_backup_db() {
|
|
_abra_backup_mysql "db" "gitea"
|
|
}
|
|
|
|
abra_backup() {
|
|
abra_backup_app && abra_backup_db
|
|
}
|