fix: add 2s delay between per-domain lego runs
This commit is contained in:
parent
8b2301f3a4
commit
ec739975ec
1 changed files with 3 additions and 0 deletions
|
|
@ -184,6 +184,9 @@ func obtainCertsLego(domains []string, email, backupDir, legoDir, legoPath strin
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Small delay so port 80 is released between runs
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
|
||||||
// Copy cert to per-domain backup
|
// Copy cert to per-domain backup
|
||||||
crtSrc := filepath.Join(certDir, domain+".crt")
|
crtSrc := filepath.Join(certDir, domain+".crt")
|
||||||
keySrc := filepath.Join(certDir, domain+".key")
|
keySrc := filepath.Join(certDir, domain+".key")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue