From 229cf82dbade76804521c51aab18b92e9fda7d02 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 3 Jul 2018 17:33:36 +0300 Subject: Change: stop Apache while running certbot The certbot apache support is not currently working in Debian, so this is a workaround. Not ideal, but good enough for me. --- roles/apache_server/templates/deploy_static_site_certs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/apache_server/templates/deploy_static_site_certs b/roles/apache_server/templates/deploy_static_site_certs index 440fe23..3239ff0 100644 --- a/roles/apache_server/templates/deploy_static_site_certs +++ b/roles/apache_server/templates/deploy_static_site_certs @@ -32,8 +32,10 @@ run_certbot() } +systemctl stop apache2 for list in /etc/letsencrypt/*.list do certname="$(basename "$list" .list)" run_certbot "$list" "$certname" done +systemctl start apache2 -- cgit v1.2.1