mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 13:50:39 +00:00
Create AuthorizedKeysCommand (#5236)
This commit is contained in:
parent
00533d3870
commit
7d9a191a3c
7 changed files with 136 additions and 19 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue