[release] version 0.5.0-unstable9

This commit is contained in:
Yann Stepienik 2023-05-15 20:35:14 +01:00
parent b94651811e
commit 364b56a317
3 changed files with 8 additions and 2 deletions

View file

@ -94,7 +94,7 @@ const GetActions = ({
];
return actions.filter((action) => {
return action.if.includes(state) ?? (updateAvailable && action.if.includes('update_available'));
return action.if.includes(state) || (updateAvailable && action.if.includes('update_available'));
}).map((action) => {
return <Tooltip title={action.t}>{action.e}</Tooltip>
});

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.5.0-unstable8",
"version": "0.5.0-unstable9",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -328,6 +328,12 @@ func CheckUpdatesAvailable() map[string]bool {
for _, container := range containers {
utils.Log("Checking for updates for " + container.Image)
// check container is running
if container.State != "running" {
utils.Log("Container " + container.Names[0] + " is not running, skipping")
continue
}
rc, err := DockerClient.ImagePull(DockerContext, container.Image, types.ImagePullOptions{})
if err != nil {
utils.Error("CheckUpdatesAvailable", err)