diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-12-03 22:50:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-12-04 18:12:40 +0800 |
commit | d4415f5e40fbd155adb3e85e4eae5c7db7832694 (patch) | |
tree | 8488e9f090452b234a53e3dd346f2874f2bf0b57 /cmd/puppeth/wizard_nginx.go | |
parent | 8698fbabf6c7811e8eec6e84512510e9c9a4eb45 (diff) | |
download | go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.gz go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.bz2 go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.lz go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.xz go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.tar.zst go-tangerine-d4415f5e40fbd155adb3e85e4eae5c7db7832694.zip |
cmd/puppeth: chain import/export via wizard, minor polishes
Diffstat (limited to 'cmd/puppeth/wizard_nginx.go')
-rw-r--r-- | cmd/puppeth/wizard_nginx.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/puppeth/wizard_nginx.go b/cmd/puppeth/wizard_nginx.go index 4eeae93a0..8397b7fd5 100644 --- a/cmd/puppeth/wizard_nginx.go +++ b/cmd/puppeth/wizard_nginx.go @@ -41,12 +41,12 @@ func (w *wizard) ensureVirtualHost(client *sshClient, port int, def string) (str // Reverse proxy is not running, offer to deploy a new one fmt.Println() fmt.Println("Allow sharing the port with other services (y/n)? (default = yes)") - if w.readDefaultString("y") == "y" { + if w.readDefaultYesNo(true) { nocache := false if proxy != nil { fmt.Println() fmt.Printf("Should the reverse-proxy be rebuilt from scratch (y/n)? (default = no)\n") - nocache = w.readDefaultString("n") != "n" + nocache = w.readDefaultYesNo(false) } if out, err := deployNginx(client, w.network, port, nocache); err != nil { log.Error("Failed to deploy reverse-proxy", "err", err) |