aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_ethstats.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-19 21:00:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:33 +0800
commitda3b9f831e6bb8f8a3c589e5cd8426fd9da72eea (patch)
treefb9cca2507788d43e79113a42d9abc3e221e6378 /cmd/puppeth/wizard_ethstats.go
parent7b258c96816df56e642df7e314e8052213af70fa (diff)
downloadgo-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar
go-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.gz
go-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.bz2
go-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.lz
go-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.xz
go-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.zst
go-tangerine-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.zip
cmd/puppeth: support deploying services with forced rebuilds
Diffstat (limited to 'cmd/puppeth/wizard_ethstats.go')
-rw-r--r--cmd/puppeth/wizard_ethstats.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/puppeth/wizard_ethstats.go b/cmd/puppeth/wizard_ethstats.go
index ff75a9d5d..1bde5a3fd 100644
--- a/cmd/puppeth/wizard_ethstats.go
+++ b/cmd/puppeth/wizard_ethstats.go
@@ -98,13 +98,17 @@ func (w *wizard) deployEthstats() {
sort.Strings(infos.banned)
}
// Try to deploy the ethstats server on the host
+ fmt.Println()
+ fmt.Printf("Should the ethstats be built from scratch (y/n)? (default = no)\n")
+ nocache := w.readDefaultString("n") != "n"
+
trusted := make([]string, 0, len(w.servers))
for _, client := range w.servers {
if client != nil {
trusted = append(trusted, client.address)
}
}
- if out, err := deployEthstats(client, w.network, infos.port, infos.secret, infos.host, trusted, infos.banned); err != nil {
+ if out, err := deployEthstats(client, w.network, infos.port, infos.secret, infos.host, trusted, infos.banned, nocache); err != nil {
log.Error("Failed to deploy ethstats container", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)