lasthourcloud/src/lib/queues/sslrenewal.ts

12 lines
305 B
TypeScript
Raw Normal View History

2022-02-10 15:47:44 +01:00
import { asyncExecShell } from '$lib/common';
export default async function () {
try {
return await asyncExecShell(
`docker run --rm --name certbot-renewal -v "coolify-letsencrypt:/etc/letsencrypt" certbot/certbot --logs-dir /etc/letsencrypt/logs renew`
);
} catch (error) {
throw error;
}
}