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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue