fix(config): seed app.ini when missing OR empty (-s), bump v3

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).
This commit is contained in:
2026-06-18 02:52:50 +00:00
parent 1a098452f4
commit d41452663f
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
export APP_INI_VERSION=v22
export DOCKER_SETUP_SH_VERSION=v2
export DOCKER_SETUP_SH_VERSION=v3
export PG_BACKUP_VERSION=v1
abra_backup_app() {