optimization, dont replace existing certs on start
This commit is contained in:
parent
30d22895d4
commit
f488ba0672
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async gen_cert(domain: string) {
|
private async gen_cert(domain: string) {
|
||||||
|
if (await exists(`/etc/letsencrypt/live/${domain}`)) return;
|
||||||
await run(
|
await run(
|
||||||
"certbot",
|
"certbot",
|
||||||
"--nginx",
|
"--nginx",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue