lifecycle: use nixos-container restart for the running case (mara@#372)
This commit is contained in:
parent
48420890e0
commit
0540f213f1
1 changed files with 1 additions and 2 deletions
|
|
@ -348,8 +348,7 @@ pub async fn rebuild_no_meta(
|
|||
systemd_daemon_reload().await?;
|
||||
run(&["update", &container, "--flake", &flake_ref]).await?;
|
||||
if was_running {
|
||||
run(&["stop", &container]).await?;
|
||||
run(&["start", &container]).await
|
||||
run(&["restart", &container]).await
|
||||
} else if is_running(name).await {
|
||||
run(&["stop", &container]).await
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue