This commit is contained in:
müde 2026-05-15 02:58:35 +02:00
parent b711296460
commit 0fc287c768
2 changed files with 2 additions and 6 deletions

View file

@ -98,8 +98,7 @@ pub async fn destroy(name: &str) -> Result<()> {
}
let dropin_dir = format!("/run/systemd/system/container@{container}.service.d");
if std::path::Path::new(&dropin_dir).exists() {
std::fs::remove_dir_all(&dropin_dir)
.with_context(|| format!("remove {dropin_dir}"))?;
std::fs::remove_dir_all(&dropin_dir).with_context(|| format!("remove {dropin_dir}"))?;
}
Ok(())
}