From 32c6ad1ab08339fd1c3abbbfecb600c51d2688fb Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 2 Jan 2022 18:13:17 +0100 Subject: [PATCH] updated gitea state --- states/gitea/defaults.yaml | 1 + states/gitea/files/gitea.service.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/states/gitea/defaults.yaml b/states/gitea/defaults.yaml index 8cad8b3..cab5ea5 100644 --- a/states/gitea/defaults.yaml +++ b/states/gitea/defaults.yaml @@ -1,6 +1,7 @@ --- gitea: workingdir: /var/lib/gitea + binfile: /var/lib/gitea/gitea configfile: /var/lib/gitea/custom/conf/app.ini user: git group: git diff --git a/states/gitea/files/gitea.service.j2 b/states/gitea/files/gitea.service.j2 index 18d466f..e9ac5b4 100644 --- a/states/gitea/files/gitea.service.j2 +++ b/states/gitea/files/gitea.service.j2 @@ -10,7 +10,7 @@ Type=simple User={{ gitea.user }} Group={{ gitea.user }} WorkingDirectory={{ gitea.workingdir }} -ExecStart={{ gitea.workingdir }}/gitea web +ExecStart={{ gitea.binfile }} -w {{ gitea.workingdir }} web Restart=always Environment=USER={{ gitea.user }} HOME={{ gitea.workingdir }}