troubleshooting taskd docker control buttons

pull/1/head
riley 1 year ago
parent eae34d3de4
commit 426b5bcc71

@ -17,7 +17,8 @@ if not task_running then
<% <%
local util = require "luci.util" local util = require "luci.util"
local container_status = util.trim(util.exec(self.script_path.." status")) 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)") local container_running = string.match(string.lower(container_status), "^up .* (seconds|minutes|hours)")
if container_install then if container_install then
-%> -%>

Loading…
Cancel
Save