Browse Source

don't append key file if asked not to (#13368)

tags/v1.15.0-dev
Antoine GIRARD GitHub 4 years ago
parent
commit
7f776843d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/ssh_key.go

+ 1
- 1
models/ssh_key.go View File

@@ -362,7 +362,7 @@ func CheckPublicKeyString(content string) (_ string, err error) {
// appendAuthorizedKeysToFile appends new SSH keys' content to authorized_keys file.
func appendAuthorizedKeysToFile(keys ...*PublicKey) error {
// Don't need to rewrite this file if builtin SSH server is enabled.
if setting.SSH.StartBuiltinServer {
if setting.SSH.StartBuiltinServer || !setting.SSH.CreateAuthorizedKeysFile {
return nil
}



Loading…
Cancel
Save