fix: lego v5 flags — use --http.address, -m for email, -d for domains
This commit is contained in:
parent
d144fcdc28
commit
1eb470fa12
1 changed files with 4 additions and 4 deletions
|
|
@ -166,14 +166,14 @@ func obtainCertsLego(domains []string, email, backupDir, legoDir, legoPath strin
|
||||||
|
|
||||||
// Build lego args (v5+: flags go after the command, use = syntax)
|
// Build lego args (v5+: flags go after the command, use = syntax)
|
||||||
args := []string{"run",
|
args := []string{"run",
|
||||||
"--email=" + email,
|
|
||||||
"--http",
|
"--http",
|
||||||
"--http.port=:80",
|
"--http.address=:80",
|
||||||
"--path=" + legoDir,
|
"--path", legoDir,
|
||||||
"--accept-tos",
|
"--accept-tos",
|
||||||
|
"-m", email,
|
||||||
}
|
}
|
||||||
for _, d := range domains {
|
for _, d := range domains {
|
||||||
args = append(args, "--domains="+d)
|
args = append(args, "-d", d)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command(legoPath, args...)
|
cmd := exec.Command(legoPath, args...)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue