mirror of
https://github.com/rancher/os.git
synced 2025-09-03 07:44:21 +00:00
Support switching to the default console
This commit is contained in:
@@ -18,13 +18,15 @@ func Main() {
|
||||
|
||||
cfg := config.LoadConfig()
|
||||
|
||||
project, err := compose.GetProject(cfg, true)
|
||||
project, err := compose.GetProject(cfg, true, false)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if err = compose.LoadService(project, cfg, true, newConsole); err != nil {
|
||||
log.Fatal(err)
|
||||
if newConsole != "default" {
|
||||
if err = compose.LoadService(project, cfg, true, newConsole); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
if err = project.Up(context.Background(), options.Up{
|
||||
|
Reference in New Issue
Block a user