Create AuthorizedKeysCommand (#5236)

This commit is contained in:
zeripath authored and techknowlogick committed 2018-11-01 09:41:07 -04:00
1 parent 00533d3870
commit 7d9a191a3c
7 files changed
+136 -19

No files matched your search

+1 -1
View File
@@ -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
}