[release] version 0.5.0-unstable9
This commit is contained in:
parent
b94651811e
commit
364b56a317
|
@ -94,7 +94,7 @@ const GetActions = ({
|
||||||
];
|
];
|
||||||
|
|
||||||
return actions.filter((action) => {
|
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) => {
|
}).map((action) => {
|
||||||
return <Tooltip title={action.t}>{action.e}</Tooltip>
|
return <Tooltip title={action.t}>{action.e}</Tooltip>
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cosmos-server",
|
"name": "cosmos-server",
|
||||||
"version": "0.5.0-unstable8",
|
"version": "0.5.0-unstable9",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "test-server.js",
|
"main": "test-server.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
@ -328,6 +328,12 @@ func CheckUpdatesAvailable() map[string]bool {
|
||||||
for _, container := range containers {
|
for _, container := range containers {
|
||||||
utils.Log("Checking for updates for " + container.Image)
|
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{})
|
rc, err := DockerClient.ImagePull(DockerContext, container.Image, types.ImagePullOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Error("CheckUpdatesAvailable", err)
|
utils.Error("CheckUpdatesAvailable", err)
|
||||||
|
|
Loading…
Reference in a new issue