mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09: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