1 Commits

Author SHA1 Message Date
c77128583a Bugfix: The git service user's $HOME changed to the workdir.
All checks were successful
Test the role / test-the-role (push) Successful in 8s
This bug prevented the gitea.service to start properly.
The new git home is the 'gitea_work_path' - default to /var/lib/gitea.
2026-02-26 10:46:33 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -76,8 +76,9 @@
- name: Create the gitea user
ansible.builtin.user:
name: "{{ gitea_user }}"
comment: "Gitea Service User"
group: "{{ gitea_group }}"
home: /home/{{ gitea_user }}
home: "{{ gitea_work_path }}"
shell: /bin/bash
password: '*'
system: true

View File

@@ -16,7 +16,7 @@ Group={{ gitea_group }}
WorkingDirectory={{ gitea_work_path }}
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER={{ gitea_user }} HOME=/home/{{ gitea_user }} GITEA_WORK_DIR={{ gitea_work_path }}
Environment=USER={{ gitea_user }} HOME={{ gitea_work_path }} GITEA_WORK_DIR={{ gitea_work_path }}
[Install]
WantedBy=multi-user.target