mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
fix Status of container for each versions of LXD
This commit is contained in:
parent
0c9a1b24bc
commit
3b23a02709
1 changed files with 1 additions and 1 deletions
2
utils.sh
2
utils.sh
|
@ -118,7 +118,7 @@ rotate_image()
|
||||||
local should_restart=0
|
local should_restart=0
|
||||||
|
|
||||||
# If the container is running, stop it
|
# If the container is running, stop it
|
||||||
if [ $(lxc info $instance_to_publish | grep Status | awk '{print $2}') = "RUNNING" ]
|
if [ "$(lxc info $instance_to_publish | grep Status | awk '{print tolower($2)}')" = "running" ]
|
||||||
then
|
then
|
||||||
should_restart=1
|
should_restart=1
|
||||||
lxc stop "$instance_to_publish"
|
lxc stop "$instance_to_publish"
|
||||||
|
|
Loading…
Reference in a new issue