diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-27 19:36:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:39 +0800 |
commit | ffc12f63ec57682e7c7f6653332856acbeef3183 (patch) | |
tree | 581a82231e18824c36f759421f78caa2cd83a8de /cmd/puppeth/wizard_dashboard.go | |
parent | 80be5e546398203c1958a0f512e651a2c36b1fe0 (diff) | |
download | go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.gz go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.bz2 go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.lz go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.xz go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.zst go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.zip |
cmd/puppeth: simplifications and pre-built docker images
Diffstat (limited to 'cmd/puppeth/wizard_dashboard.go')
-rw-r--r-- | cmd/puppeth/wizard_dashboard.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go index 10aa6ee05..278b5533a 100644 --- a/cmd/puppeth/wizard_dashboard.go +++ b/cmd/puppeth/wizard_dashboard.go @@ -33,12 +33,15 @@ func (w *wizard) deployDashboard() { client := w.servers[server] // Retrieve any active dashboard configurations from the server + existed := true + infos, err := checkDashboard(client, w.network) if err != nil { infos = &dashboardInfos{ port: 80, host: client.server, } + existed = false } // Figure out which port to listen on fmt.Println() @@ -138,10 +141,12 @@ func (w *wizard) deployDashboard() { infos.trusted = w.readDefaultString("y") == "y" } // Try to deploy the dashboard container on the host - fmt.Println() - fmt.Printf("Should the dashboard be built from scratch (y/n)? (default = no)\n") - nocache := w.readDefaultString("n") != "n" - + nocache := false + if existed { + fmt.Println() + fmt.Printf("Should the dashboard be built from scratch (y/n)? (default = no)\n") + nocache = w.readDefaultString("n") != "n" + } if out, err := deployDashboard(client, w.network, &w.conf, infos, nocache); err != nil { log.Error("Failed to deploy dashboard container", "err", err) if len(out) > 0 { |