Skip to content

Commit

Permalink
fix(engine): download - check config (#5727)
Browse files Browse the repository at this point in the history
close #5716

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault authored Mar 4, 2021
1 parent b50d664 commit 0f356b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/cmd_download.go
Original file line number Diff line number Diff line change
@@ -78,6 +78,9 @@ var downloadUICmd = &cobra.Command{
if conf.API == nil {
sdk.Exit("Invalid configuration file")
}
if conf.UI == nil {
sdk.Exit("Invalid configuration file - missing ui section")
}
downloadTarGzFromGithub(conf.UI.Staticdir, "ui.tar.gz")
},
}
@@ -92,6 +95,9 @@ var downloadSQLCmd = &cobra.Command{
if conf.API == nil {
sdk.Exit("Invalid configuration file")
}
if conf.DatabaseMigrate == nil {
sdk.Exit("Invalid configuration file - missing databaseMigrate section")
}
downloadTarGzFromGithub(conf.DatabaseMigrate.Directory, "sql.tar.gz")
},
}

0 comments on commit 0f356b4

Please sign in to comment.