From 4a3c19e0538cc66947cded4f2b44848415a35703 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 19 Jul 2024 10:23:54 -0700 Subject: [PATCH] Fix the formatting of the gitea app.ini file During the Gitea 1.22.1 upgrade we had failures because gitea wanted to write back to its app.ini config file and couldn't do so due to file permissions. We address that by fixing the formatting for one entry in the template then separately update a secret var to match what ended up being deployed to gitea09. In theory this should make everything line up such that we don't actually need to write back to the file at all. If this continues to fail we will instead update file permissions and let gitea rewrite its file instead. But that would be the next thing to try. Change-Id: Ic3a6e2dd25ec906c234c2fea26b68eb8f742201c --- playbooks/roles/gitea/templates/app.ini.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 213641ae2c..013c3dfbc2 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -2,7 +2,7 @@ APP_NAME = OpenDev: Free Software Needs Free Tools RUN_MODE = prod RUN_USER = git ; TODO determine if this is appropriate for our existing installation -WORK_PATH= /data/gitea +WORK_PATH = /data/gitea [server] APP_DATA_PATH = /data/gitea