InSync is the opposite of RequiresRestart...
This commit is contained in:
@@ -346,7 +346,7 @@ func restPostConfig(m *model.Model, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// Activate and save
|
// Activate and save
|
||||||
|
|
||||||
configInSync = config.ChangeRequiresRestart(cfg.Raw(), newCfg)
|
configInSync = !config.ChangeRequiresRestart(cfg.Raw(), newCfg)
|
||||||
cfg.Replace(newCfg)
|
cfg.Replace(newCfg)
|
||||||
cfg.Save()
|
cfg.Save()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user