From 426b5bcc71facc93a4dab668defad766a82cb7eb Mon Sep 17 00:00:00 2001 From: riley Date: Tue, 12 Sep 2023 22:41:12 -0400 Subject: [PATCH] troubleshooting taskd docker control buttons --- luasrc/view/tasks/docker.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luasrc/view/tasks/docker.htm b/luasrc/view/tasks/docker.htm index c40ca35..454bf21 100644 --- a/luasrc/view/tasks/docker.htm +++ b/luasrc/view/tasks/docker.htm @@ -17,7 +17,8 @@ if not task_running then <% local util = require "luci.util" local container_status = util.trim(util.exec(self.script_path.." status")) - local container_install = not string.match(container_status, " is not installed$") + local container_status_lower = string.lower(util.trim(util.exec(self.script_path.." status"))) + local container_install = not string.match(container_status_lower, " is not installed$") local container_running = string.match(string.lower(container_status), "^up .* (seconds|minutes|hours)") if container_install then -%>