From 87022f9894b7d9e38dfae523aacf470749a3a838 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 10 Aug 2022 18:59:47 +0200 Subject: [PATCH] fix Status of container for each versions of LXD --- image_builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"