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
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user