fix(app): install cancels whole process trees and silent downloads, and finishes only with the settings written

- A cancelled command ends with every process it started (process group on
  Unix, taskkill /T on Windows).
- Waiting for a response or the next chunk gives way to a cancel, so a
  silent server cannot hold the install.
- Pointing the settings at the runtime is the last install step: a failure
  shows as failed and can be retried; done means written.
- Strata's installer gets its folder as the working folder, not inside the
  script text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 17:17:25 +09:00
parent a4436698c8
commit 1a6d6447f6
6 changed files with 196 additions and 28 deletions

View File

@@ -146,13 +146,7 @@ impl AdminApi {
}
"install_status" => Ok(self.installer()?.status()),
"install_start" => {
let inst = self.installer()?;
let settings = self.dir()?.settings_file();
if !inst.start_then(move |layout| {
if let Err(e) = crate::install::apply_runtime_settings(&settings, layout) {
crate::error_log!("install", "could not point the settings at the runtime: {e}");
}
}) {
if !self.installer()?.start() {
return Err("설치가 이미 진행 중입니다".into());
}
Ok(json!({"started": true}))