diff --git a/luasrc/view/btcpayserver/status.htm b/luasrc/view/btcpayserver/status.htm index 1a55d66..800d120 100644 --- a/luasrc/view/btcpayserver/status.htm +++ b/luasrc/view/btcpayserver/status.htm @@ -3,17 +3,15 @@ local util = require "luci.util" local container_status = util.trim(util.exec("/usr/libexec/apps/btcpayserver/btcpayserver.sh status")) local container_running = string.match(string.lower(container_status), "^up%W") local port = util.trim(util.exec("/usr/libexec/apps/btcpayserver/btcpayserver.sh port")) +if port == "" then + port = "3000" +end -%>
<% if container_running then %> - <% - if port == "" then - port = "3000" - end - -%> <% else %>