From ed4a714a647214b8f3fdc927a3e822cd333175f8 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sun, 6 Apr 2025 10:14:10 +0100 Subject: [PATCH] chore (infra): format cert script better --- scripts/regenerate_certificates.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/scripts/regenerate_certificates.sh b/scripts/regenerate_certificates.sh index 6ff9d86..d68302e 100644 --- a/scripts/regenerate_certificates.sh +++ b/scripts/regenerate_certificates.sh @@ -2,14 +2,26 @@ echo "INFO Updating TLS certificates..." -cd /home/thomas/self-host/proxy/nginx +cd /home/thomas/self-host/proxy/nginx || exit sudo docker compose down -sleep 2 +sleep 1 sudo certbot delete --cert-name systemsobscure.net -sleep 2 +sleep 1 -sudo certbot certonly --standalone -d systemsobscure.net -d grafana.systemsobscure.net -d bookmarks.systemsobscure.net -d forgejo.systemsobscure.net +sudo certbot certonly --standalone \ + -d systemsobscure.net \ + -d grafana.systemsobscure.net \ + -d bookmarks.systemsobscure.net \ + -d forgejo.systemsobscure.net + +echo "INFO Confirming certificate creation..." + +sudo certbot certificates + +sleep 1 + +sudo docker compose up -d