Parcourir la source

fix acme install issue

Jacky il y a 4 ans
Parent
commit
d60701256e
2 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 11 0
      nginx-ui-frontend/src/assets/css/dark.less
  2. 4 0
      server/test/acme_test.go

+ 11 - 0
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;
     }

+ 4 - 0
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 {