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