Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song
2022-12-02 09:42:42 +08:00
committed by GitHub
5 changed files with 33 additions and 6 deletions

View File

@ -178,6 +178,10 @@ func initAttachments() (err error) {
}
func initLFS() (err error) {
if !setting.LFS.StartServer {
LFS = discardStorage("LFS isn't enabled")
return nil
}
log.Info("Initialising LFS storage with type: %s", setting.LFS.Storage.Type)
LFS, err = NewStorage(setting.LFS.Storage.Type, &setting.LFS.Storage)
return err