fix: Do not run SSL renew in development
This commit is contained in:
parent
4046c472ed
commit
eccd7c96d7
@ -292,6 +292,7 @@ export async function generateSSLCerts(): Promise<void> {
|
||||
}
|
||||
|
||||
export async function renewSSLCerts(): Promise<void> {
|
||||
if (!dev) {
|
||||
const host = 'unix:///var/run/docker.sock';
|
||||
await asyncExecShell(`docker pull alpine:latest`);
|
||||
const certbotImage =
|
||||
@ -314,4 +315,5 @@ export async function renewSSLCerts(): Promise<void> {
|
||||
}
|
||||
}
|
||||
await reloadHaproxy('unix:///var/run/docker.sock');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user