mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
agent: Add warning if windows and running server mode
This commit is contained in:
parent
9bac0dc28c
commit
bb33a47bab
@ -111,6 +111,11 @@ func (c *Command) readConfig() *Config {
|
|||||||
c.Ui.Error("WARNING: Bootstrap mode enabled! Do not enable unless necessary")
|
c.Ui.Error("WARNING: Bootstrap mode enabled! Do not enable unless necessary")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warn if using windows as a server
|
||||||
|
if config.Server && runtime.GOOS == "windows" {
|
||||||
|
c.Ui.Error("WARNING: Windows is not recommended as a Consul server. Do not use in production.")
|
||||||
|
}
|
||||||
|
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user