1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 21:51:33 +00:00

Simplify configuration

This commit is contained in:
Josh Curl
2016-05-31 14:34:04 -07:00
parent 00824cebca
commit 95d8ebe146
13 changed files with 193 additions and 605 deletions

View File

@@ -108,8 +108,7 @@ func (s *Service) shouldRebuild(ctx context.Context) (bool, error) {
rebuilding := false
if outOfSync {
if cfg.Rancher.ForceConsoleRebuild && s.Name() == "console" {
cfg.Rancher.ForceConsoleRebuild = false
if err := cfg.Save(); err != nil {
if err := config.Set("rancher.force_console_rebuild", false); err != nil {
return false, err
}
rebuilding = true