diff --git a/luasrc/view/btcpayserver/status.htm b/luasrc/view/btcpayserver/status.htm index 41039b7..1a55d66 100644 --- a/luasrc/view/btcpayserver/status.htm +++ b/luasrc/view/btcpayserver/status.htm @@ -2,29 +2,21 @@ 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 container_running then %> + <% + if port == "" then + port = "3000" + end + -%> + <% else %> <% end %>
- -<% -if container_running then - local port = util.trim(util.exec("/usr/libexec/apps/btcpayserver/btcpayserver.sh port")) - if port == "" then - port = "3000" - end --%> -
- -
- -
-
-<% end %>