|
|
@ -1,6 +1,6 @@
|
|
|
|
<%
|
|
|
|
<%
|
|
|
|
local util = require "luci.util"
|
|
|
|
local util = require "luci.util"
|
|
|
|
local container_status = util.trim(util.exec("/usr/libexec/apps/nodered-app/nodered.sh status"))
|
|
|
|
local container_status = util.trim(util.exec("/usr/libexec/apps/nodered/nodered.sh status"))
|
|
|
|
local container_install = (string.len(container_status) > 0)
|
|
|
|
local container_install = (string.len(container_status) > 0)
|
|
|
|
local container_running = container_status == "running"
|
|
|
|
local container_running = container_status == "running"
|
|
|
|
-%>
|
|
|
|
-%>
|
|
|
@ -16,7 +16,7 @@ local container_running = container_status == "running"
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%
|
|
|
|
<%
|
|
|
|
if container_running then
|
|
|
|
if container_running then
|
|
|
|
local port=util.trim(util.exec("/usr/libexec/apps/nodered-app/nodered.sh port"))
|
|
|
|
local port=util.trim(util.exec("/usr/libexec/apps/nodered/nodered.sh port"))
|
|
|
|
if port == "" then
|
|
|
|
if port == "" then
|
|
|
|
port="1880"
|
|
|
|
port="1880"
|
|
|
|
end
|
|
|
|
end
|
|
|
|