From 3892aec435869bc2c5cd34f7ee39f2ed0ea13050 Mon Sep 17 00:00:00 2001 From: "martin.fencl" Date: Thu, 6 Aug 2026 18:17:21 +0200 Subject: [PATCH] fix: correct indentation for vm_commands and streamline container state check logic --- nextcloud/check_stack_nextcloud.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nextcloud/check_stack_nextcloud.yml b/nextcloud/check_stack_nextcloud.yml index 943c87b..0c6c69a 100644 --- a/nextcloud/check_stack_nextcloud.yml +++ b/nextcloud/check_stack_nextcloud.yml @@ -20,7 +20,7 @@ collabora_url: "https://collabora.martinfencl.eu/" collabora_discovery_url: "https://collabora.martinfencl.eu/hosting/discovery" - vm_commands: + vm_commands: - name: Run Nextcloud cron command: >- docker exec -u www-data @@ -52,11 +52,7 @@ {{ nextcloud_db_container | quote }} {{ redis_container | quote }}; do - state="$( - docker inspect - --format '{% raw %}{{.State.Running}}{% endraw %}' - "${container}" 2>/dev/null - )"; + state="$(docker inspect --format '{% raw %}{{.State.Running}}{% endraw %}' "${container}" 2>/dev/null)"; if [ "${state}" != "true" ]; then echo "Container ${container} is not running" >&2; exit 1;