mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-08 09:44:00 +09:00
Create AuthorizedKeysCommand (#5236)
This commit is contained in:
@ -558,7 +558,7 @@ func DeletePublicKey(doer *User, id int64) (err error) {
|
||||
// outside any session scope independently.
|
||||
func RewriteAllPublicKeys() error {
|
||||
//Don't rewrite key if internal server
|
||||
if setting.SSH.StartBuiltinServer {
|
||||
if setting.SSH.StartBuiltinServer || !setting.SSH.CreateAuthorizedKeysFile {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user