<% end %>
<%+cbi/map%>
<%
local task_running = false
local taskd = require "luci.model.tasks"
local status = taskd.status(self.task_id)
task_running = status.running
-%>
<%
if not task_running then
%>
<%
local util = require "luci.util"
local container_status = util.trim(util.exec(self.script_path.." status"))
local container_install = (string.len(container_status) > 0)
local container_running = container_status == "running"
if container_install then
-%>
<%
if container_running then
-%>
<% else %>
<% end
else %>
<% end
else
%>
<%
end
%>
<%+tasks/embed%>
<%
if self.auto_show_task and task_running then
-%>
<%
end
%>