mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
appmgr: fix: restart dep on install (#261)
This commit is contained in:
@@ -565,10 +565,12 @@ pub async fn install_v0<R: AsyncRead + Unpin + Send + Sync>(
|
|||||||
if dep_info.mount_shared
|
if dep_info.mount_shared
|
||||||
&& crate::apps::list_info().await?.get(&dep_id).is_some()
|
&& crate::apps::list_info().await?.get(&dep_id).is_some()
|
||||||
&& crate::apps::manifest(&dep_id).await?.shared.is_some()
|
&& crate::apps::manifest(&dep_id).await?.shared.is_some()
|
||||||
&& crate::apps::status(&dep_id, false).await?.status
|
|
||||||
!= crate::apps::DockerStatus::Stopped
|
|
||||||
{
|
{
|
||||||
crate::apps::set_needs_restart(&dep_id, true).await?;
|
match crate::apps::status(&dep_id, false).await?.status {
|
||||||
|
crate::apps::DockerStatus::Stopped => (),
|
||||||
|
crate::apps::DockerStatus::Running => crate::control::restart_app(&dep_id).await?,
|
||||||
|
_ => crate::apps::set_needs_restart(&dep_id, true).await?,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user