mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
Create AuthorizedKeysCommand (#5236)
This commit is contained in:
@ -27,10 +27,14 @@ func argsSet(c *cli.Context, args ...string) error {
|
||||
}
|
||||
|
||||
func initDB() error {
|
||||
return initDBDisableConsole(false)
|
||||
}
|
||||
|
||||
func initDBDisableConsole(disableConsole bool) error {
|
||||
setting.NewContext()
|
||||
models.LoadConfigs()
|
||||
|
||||
setting.NewXORMLogService(false)
|
||||
setting.NewXORMLogService(disableConsole)
|
||||
if err := models.SetEngine(); err != nil {
|
||||
return fmt.Errorf("models.SetEngine: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user