Document how to create initial admin user #22
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I juste deployed gitea, unfortunately I don't know how to create the first user. Could you provide some instructionns on how to proceed?
Thank you in advance.
Hey @aileoia, welcome, and thank you for the question!
I had a look at the Gitea command-line documentation, and I think something like this should work:
abra app run git_coopcloud_tech app gitea admin user create --name admin --username admin --password mysecretpassword
(replace
git_coopcloud_tech
with your app name)Hello @3wordchant , thanks for the reply.
In the mean time I had the chance to dig a bit and I came up with roughly the same command as the one you suggest and I run into the next problems:
It fails with
Indeed, if I look at the permissions, I see
So the folder
custom
is not writable which is the reason why it is not possible to create the folder above.If I change the permissions with
abra run ... chmod +w /var/lib/gitea/custom
and rerun thegitea create ...
command, I getI'm not sure what's the issue. I remember I had managed to serve a gitea with a simple compose file and it had worked... maybe something with the compose-file?
Thank you so much for developping all this! If I can help, I'd be glad to!
@aileoia you are definitely helping already 😁 Thank you!
It looks like it's necessary to provide the path to the Gitea config, maybe it's non-standard? This indeed doesn't work for me:
but this does:
Does adding
-c /etc/gitea/app.ini
work for you too?I confirm that it works:
I'll now try to create an admin user.
worked, with the
-c /etc/gitea/app.ini
Thanks!
Does it mean something for this repo?
Should I make a PR updating at least the README?
Is there a way to easily create a new user with
abra
? Or maybe generate the password for the first user along with the other secrets, as for nextcloud?Incredible, thank you! I'll review the PR soon. I do half-remember something about creating an initial user using an environment variable, I'll do some research unless you beat me to it 💪
I think this issue can be closed :)