mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 20:59:24 +00:00
14 lines
398 B
TypeScript
14 lines
398 B
TypeScript
import { asyncExecShell } from '$lib/common';
|
|
import { reloadHaproxy } from '$lib/haproxy';
|
|
|
|
export default async function () {
|
|
try {
|
|
await asyncExecShell(
|
|
`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');
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
}
|