diff options
author | zeripath <art27@cantab.net> | 2018-11-01 13:41:07 +0000 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-11-01 09:41:07 -0400 |
commit | 7d9a191a3c78f7135e7ce3e314290e844fb7edfe (patch) | |
tree | e264b613f327b49d29054fa2cc1cf0f0a16ac9ad /models | |
parent | 00533d38702767bc25703968daaa87b30980d2c9 (diff) | |
download | gitea-7d9a191a3c78f7135e7ce3e314290e844fb7edfe.tar.gz gitea-7d9a191a3c78f7135e7ce3e314290e844fb7edfe.zip |
Create AuthorizedKeysCommand (#5236)
Diffstat (limited to 'models')
-rw-r--r-- | models/ssh_key.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go index 0368ffad33..5d046c0201 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -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 } |