Compare commits
1 Commits
v3.1.0
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
|
c77128583a
|
@@ -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