From 1ab0dd34576e5795e5a0def476f05e6519bf70b9 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 25 Aug 2024 08:45:29 -0500 Subject: [PATCH] r/gitea: Set WORK_DIR in config Gitea complains if the `WORK_DIR` setting is not set. It tries to set it itself, but fails because the configuration is read-only. The value it uses is incorrect anyway (`/usr/local/bin`, since that's where the `gitea` executable is). --- roles/gitea/templates/app.ini.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/gitea/templates/app.ini.j2 b/roles/gitea/templates/app.ini.j2 index c806263..b99f0c2 100644 --- a/roles/gitea/templates/app.ini.j2 +++ b/roles/gitea/templates/app.ini.j2 @@ -1,6 +1,7 @@ APP_NAME = Gitea: Git with a cup of tea RUN_USER = gitea RUN_MODE = prod +WORK_PATH = /var/lib/gitea [security] INTERNAL_TOKEN = {{ gitea_internal_token }}