From d60701256e3e0c9d93561c20fe57bedb42cb70a9 Mon Sep 17 00:00:00 2001 From: Jacky Date: Sat, 8 May 2021 18:25:06 +0800 Subject: [PATCH] fix acme install issue --- nginx-ui-frontend/src/assets/css/dark.less | 11 +++++++++++ server/test/acme_test.go | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/nginx-ui-frontend/src/assets/css/dark.less b/nginx-ui-frontend/src/assets/css/dark.less index c2e7ca0f..e8a2eb5c 100644 --- a/nginx-ui-frontend/src/assets/css/dark.less +++ b/nginx-ui-frontend/src/assets/css/dark.less @@ -36,6 +36,17 @@ @checkbox-check-color: @black_bg; @popover-bg: @black_bg; + @background-color-light: fade(@white, 4%); // background of header and selected item + + // Descriptions + // --- + @descriptions-bg: @background-color-light; + + // Alert + // --- + @alert-message-color: @black; + + .ant-select-dropdown-menu-item:hover { background: @black_bg; } diff --git a/server/test/acme_test.go b/server/test/acme_test.go index 96abda95..efca7746 100644 --- a/server/test/acme_test.go +++ b/server/test/acme_test.go @@ -20,6 +20,10 @@ func TestAcme(t *testing.T) { if os.IsNotExist(err) { log.Println("[not found] acme.sh, installing...") + if _, err := os.Stat("../tmp"); os.IsNotExist(err) { + _ = os.Mkdir("../tmp", 0644) + } + out, err := exec.Command("curl", "-o", "../tmp/acme.sh", "https://get.acme.sh"). CombinedOutput() if err != nil {