From ef7bc127b68a8398e1b5c361556cd01c2d19bd39 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sat, 27 Jun 2026 12:34:12 -0400 Subject: [PATCH] Fix platform_is_service_enabled to match Unraid's actual cfg format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unraid quotes values (DOCKER_ENABLED="yes") and uses SERVICE="enable" for libvirt — the old patterns matched nothing, so docker_watchdog always skipped. --- Plugin/unraid/adapter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugin/unraid/adapter.sh b/Plugin/unraid/adapter.sh index 8580ff5..f1c5e85 100755 --- a/Plugin/unraid/adapter.sh +++ b/Plugin/unraid/adapter.sh @@ -147,8 +147,8 @@ platform_is_maintenance_running() { # ────────────────────────────────────────────────────────────────────────────────────────────── platform_is_service_enabled() { case "$1" in - docker) grep -q '^DOCKER_ENABLED=yes' /boot/config/docker.cfg 2>/dev/null ;; - libvirt) grep -q '^DOMAIN_ENABLE=yes' /boot/config/domain.cfg 2>/dev/null ;; + docker) grep -qE '^DOCKER_ENABLED="?yes"?' /boot/config/docker.cfg 2>/dev/null ;; + libvirt) grep -q '^SERVICE="enable"' /boot/config/domain.cfg 2>/dev/null ;; *) return 1 ;; esac }