From 0e3c757ed1d0ae22c2ebb6e5176774a4a66b6b7c Mon Sep 17 00:00:00 2001 From: riley Date: Tue, 17 Oct 2023 17:55:29 -0400 Subject: [PATCH] Lil refactor --- luasrc/view/btcpayserver/status.htm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 %>