admin: launching command with git user instead of root

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2023-11-17 15:51:21 +01:00
parent 9e978c0d94
commit 6abaec8e0e
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@
- name: Create main Gitea admin user - name: Create main Gitea admin user
command: | command: |
docker exec -i {{ gitea_app_cont_name }} \ docker exec --user {{ gitea_app_cont_uid }} -i {{ gitea_app_cont_name }} \
gitea admin create-user --admin \ gitea admin user create --admin \
--username '{{ gitea_app_admin_user | mandatory }}' \ --username '{{ gitea_app_admin_user | mandatory }}' \
--password '{{ gitea_app_admin_pass | mandatory }}' \ --password '{{ gitea_app_admin_pass | mandatory }}' \
--email '{{ gitea_app_admin_email | mandatory }}' \ --email '{{ gitea_app_admin_email | mandatory }}' \