|
|
@ -1,7 +1,7 @@
|
|
|
|
<%
|
|
|
|
<%
|
|
|
|
local util = require "luci.util"
|
|
|
|
local util = require "luci.util"
|
|
|
|
local container_status = util.trim(util.exec("/usr/libexec/apps/nodered/nodered.sh status"))
|
|
|
|
local container_status = util.trim(util.exec("/usr/libexec/apps/nodered/nodered.sh status"))
|
|
|
|
local container_running = string.find(string.lower(container_status), "up") and string.find(string.lower(container_status), "(healthy)")
|
|
|
|
local container_running = string.match(string.lower(container_status), "^up%W")
|
|
|
|
local port=util.trim(util.exec("/usr/libexec/apps/nodered/nodered.sh port"))
|
|
|
|
local port=util.trim(util.exec("/usr/libexec/apps/nodered/nodered.sh port"))
|
|
|
|
-%>
|
|
|
|
-%>
|
|
|
|
|
|
|
|
|
|
|
|