mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-22 11:25:56 +00:00
fix(update): add the new module config keys before the update's check start
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
53aa117ec2
commit
dffb4811aa
1 file changed
+7
@@ -484,6 +484,13 @@ impl Env for RepackEnv<'_> {
|
||||
|
||||
fn validate(&self) -> Result<()> {
|
||||
use crate::process::{observe, ServiceState};
|
||||
// The check start is the first start of the new build: give the module configs the settings the update added
|
||||
// (as a normal start does), or the server logs a "missing property" line for every one of them.
|
||||
if let Ok((_, meta)) = crate::registry::MetaDir::open(self.meta_dir) {
|
||||
if meta.kind == crate::registry::InstallKind::New {
|
||||
let _ = crate::config::materialize_module_configs(self.root);
|
||||
}
|
||||
}
|
||||
let started = crate::driver::run(self.root, crate::driver::Verb::StartAll)?;
|
||||
let ports = crate::layout::read_ports(self.root);
|
||||
let healthy = started.ok && {
|
||||
|
||||
Reference in new issue
Block a user