From d144fcdc28d9e2dab3c4762d1cdfdb4db38333cd Mon Sep 17 00:00:00 2001 From: cclohmar Date: Tue, 7 Jul 2026 15:14:13 +0100 Subject: [PATCH] fix: lego v5 = syntax for flags --- tools/nextwks-tool/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/nextwks-tool/main.go b/tools/nextwks-tool/main.go index d82dbcc..1886bca 100644 --- a/tools/nextwks-tool/main.go +++ b/tools/nextwks-tool/main.go @@ -164,16 +164,16 @@ func obtainCertsLego(domains []string, email, backupDir, legoDir, legoPath strin return fmt.Errorf("creating lego dir: %w", err) } - // Build lego args (v5+: flags go after the command) + // Build lego args (v5+: flags go after the command, use = syntax) args := []string{"run", - "--email", email, + "--email=" + email, "--http", - "--http.port", ":80", - "--path", legoDir, + "--http.port=:80", + "--path=" + legoDir, "--accept-tos", } for _, d := range domains { - args = append(args, "--domains", d) + args = append(args, "--domains="+d) } cmd := exec.Command(legoPath, args...)