-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expect user 'gitea' but current user is: #4894
Comments
Now gitea relies on USER environment variable (don't know why, it can easily be spoofed). Maybe this should be fixed and CurrentUsername function should use Current() function from "os/user" to determine actual username rather than looking at |
@SagePtr, it actually solved the problem, thanks! EDIT: EDIT 2:
EDIT 3:
|
|
Try setting |
No, I think you misunderstood. EDIT: I think I'm fine now. Thanks for your help! :) EDIT 2:
EDIT 3: I think, though, that Gitea should be made POSIX compliant so it could run on any standard shell! |
Closing as dupe of #1640 |
write a shell script and
|
[x]
):Description
Gitea is unable to identify current user on Alpine Linux.
I have build a simple docker container using Alpine Linux to run the official release of Gitea taken from
dl.gitea.io
. Problem is that it does not seem to be able to identify current user, so if I set aRUN_USER
inapp.ini
, all I get is the following error message:Gitea runs if you omit setting
RUN_USER
, but it uses empty user name in ssh strings, too, like so:ssh:https://@domain.tld/RepoName.git
The text was updated successfully, but these errors were encountered: