diff --git a/image_builder b/image_builder index 0f205fd..475a5ae 100755 --- a/image_builder +++ b/image_builder @@ -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"