mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix acme install issue
This commit is contained in:
parent
04836ade0c
commit
d60701256e
2 changed files with 15 additions and 0 deletions
|
@ -36,6 +36,17 @@
|
||||||
@checkbox-check-color: @black_bg;
|
@checkbox-check-color: @black_bg;
|
||||||
@popover-bg: @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 {
|
.ant-select-dropdown-menu-item:hover {
|
||||||
background: @black_bg;
|
background: @black_bg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,10 @@ func TestAcme(t *testing.T) {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
log.Println("[not found] acme.sh, installing...")
|
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").
|
out, err := exec.Command("curl", "-o", "../tmp/acme.sh", "https://get.acme.sh").
|
||||||
CombinedOutput()
|
CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue