-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionalityAn improvement of existing functionality
Description
- Gitea version (or commit ref): 1.7.1
- Git version: 2.18.1
- Operating system: gitea docker image (alpine)
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
I would like to be able to create the first (admin) user without the Web UI. After starting up gitea with gitea web
, I would like to be able to use the admin CLI to create a user. However, since I am running in a container that may be restarted at any time, it would be best to have a way to check if a user is already created before attempting to create it.
Right now, you can just do gitea admin create-user ...
and if the return code is 0, it was created. If it is 1, then the user may exist, or something else may have gone wrong. It would be better to be able to have a command that lists users instead of having to try and create it to see if it already exists.
...
Screenshots
dmeulen, Loki-Afro and pzhlkj6612
Metadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionalityAn improvement of existing functionality