Removed unused container_install var

pull/1/head
Riley 1 year ago
parent 760973a0b5
commit b34eaca01e

@ -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"

Loading…
Cancel
Save