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:
CorfireanandClaude Sonnet 5.5 committed 2026-10-02 21:45:56 +05:00
1 parent 53aa117ec2
commit dffb4811aa
1 file changed
+7
+7
View File
@@ -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 && {