Create AuthorizedKeysCommand (#5236)

This commit is contained in:
zeripath authored and techknowlogick committed 2018-11-01 09:41:07 -04:00
1 parent 00533d3870
commit 7d9a191a3c
7 files changed
+136 -19

No files matched your search

+5 -1
View File
@@ -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)
}