Open IamIpanda opened 2 years ago
I have the same issue (serv not found) migrating an older version to 1.21.5. The command sent to the container appears to be "serv" when it should be "gitea serv" since there seems to be no "serv" executable and I got the following script working:
#!/bin/sh
shift
/usr/bin/docker exec -i -u git --env SSH_ORIGINAL_COMMAND="$SSH_ORIGINAL_COMMAND" gitea gitea $@
I am still not understanding why it doesn't work with the versions copied from the docs ;) ...
Description
On section Docker Shell, it set the fake gitea as:
And origin authorized_keys is
So that will combine to
And get a
sh: can't open 'serv': No such file or directory
Is that the fake gitea
the
sh
should be$0
?Or, you can get it work by change
authorized_keys
or setAuthorizedKeysCommand
, but that's not mentioned in that section.Gitea Version
N/A
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
N/A
Screenshots
N/A
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker
Database
PostgreSQL