lifecycle: use nixos-container restart for the running case (mara@#372)

This commit is contained in:
damocles 2026-05-24 13:03:31 +02:00 committed by Mara
parent 48420890e0
commit 0540f213f1

View file

@ -348,8 +348,7 @@ pub async fn rebuild_no_meta(
systemd_daemon_reload().await?; systemd_daemon_reload().await?;
run(&["update", &container, "--flake", &flake_ref]).await?; run(&["update", &container, "--flake", &flake_ref]).await?;
if was_running { if was_running {
run(&["stop", &container]).await?; run(&["restart", &container]).await
run(&["start", &container]).await
} else if is_running(name).await { } else if is_running(name).await {
run(&["stop", &container]).await run(&["stop", &container]).await
} else { } else {