We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc304ff commit 72a948eCopy full SHA for 72a948e
gateway/certbot.go
@@ -240,17 +240,21 @@ func (cb *CertBot) stopACMEServer(server *http.Server) {
240
}
241
242
func (cb *CertBot) executeRenewCertificates() error {
243
- cmd := cb.ex.Command( //nolint:gosec
244
- "certbot",
+ args := []string{
245
"renew",
246
- )
+ }
247
248
if cb.Config.Staging {
249
log.Info("running renew with staging")
250
251
- cmd.Args = append(cmd.Args, "--staging")
+ args = append(args, "--staging")
252
253
+ cmd := cb.ex.Command( //nolint:gosec
254
+ "certbot",
255
+ args...,
256
+ )
257
+
258
if err := cb.ex.Run(cmd); err != nil {
259
return err
260
0 commit comments