Added types for queues/sslrenewal
This commit is contained in:
parent
0358cf2de2
commit
b44d8578d9
1 changed files with 5 additions and 9 deletions
|
|
@ -1,13 +1,9 @@
|
||||||
import { asyncExecShell } from '$lib/common';
|
import { asyncExecShell } from '$lib/common';
|
||||||
import { reloadHaproxy } from '$lib/haproxy';
|
import { reloadHaproxy } from '$lib/haproxy';
|
||||||
|
|
||||||
export default async function () {
|
export default async function (): Promise<void> {
|
||||||
try {
|
await asyncExecShell(
|
||||||
await asyncExecShell(
|
`docker run --rm --name certbot-renewal -v "coolify-letsencrypt:/etc/letsencrypt" certbot/certbot --logs-dir /etc/letsencrypt/logs renew`
|
||||||
`docker run --rm --name certbot-renewal -v "coolify-letsencrypt:/etc/letsencrypt" certbot/certbot --logs-dir /etc/letsencrypt/logs renew`
|
);
|
||||||
);
|
await reloadHaproxy('unix:///var/run/docker.sock');
|
||||||
await reloadHaproxy('unix:///var/run/docker.sock');
|
|
||||||
} catch (error) {
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue