From ebf87bfbb09f6227ce9b267f6fd593233c52ed12 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 2 Oct 2019 10:29:30 +0300 Subject: Fix: don't fail when apache can't be started This happens on first run, since apache want to use a cert that hasn't been created yet. --- roles/apache_server/templates/deploy_static_site_certs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/apache_server/templates/deploy_static_site_certs b/roles/apache_server/templates/deploy_static_site_certs index 4933d56..2306efb 100644 --- a/roles/apache_server/templates/deploy_static_site_certs +++ b/roles/apache_server/templates/deploy_static_site_certs @@ -32,7 +32,8 @@ run_certbot() } -systemctl stop apache2 +systemctl stop apache2 || true + for list in /etc/letsencrypt/*.list do certname="$(basename "$list" .list)" -- cgit v1.2.1