mirror of
https://github.com/YunoHost/lxd_img_builder.git
synced 2024-09-03 19:56:55 +02:00
fix Status of container for each versions of LXD
This commit is contained in:
parent
afb0779650
commit
87022f9894
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function rotate_image()
|
|||
local should_restart=0
|
||||
|
||||
# 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
|
||||
should_restart=1
|
||||
lxc stop "$instance_to_publish"
|
||||
|
|
Loading…
Reference in a new issue