mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-23 05:46:09 +02:00
fix: skip initing bots storage if disabled
This commit is contained in:
parent
c5c9b4ae57
commit
a29babebd0
@ -206,6 +206,10 @@ func initPackages() (err error) {
|
||||
}
|
||||
|
||||
func initBots() (err error) {
|
||||
if !setting.Bots.Enabled {
|
||||
Bots = discardStorage("Bots isn't enabled")
|
||||
return nil
|
||||
}
|
||||
log.Info("Initialising Bots storage with type: %s", setting.Bots.Storage.Type)
|
||||
Bots, err = NewStorage(setting.Bots.Storage.Type, &setting.Bots.Storage)
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user