summaryrefslogtreecommitdiff
path: root/roles/apache_server/templates/deploy_static_site_certs
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apache_server/templates/deploy_static_site_certs')
-rw-r--r--roles/apache_server/templates/deploy_static_site_certs6
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/apache_server/templates/deploy_static_site_certs b/roles/apache_server/templates/deploy_static_site_certs
index 4933d56..1040144 100644
--- a/roles/apache_server/templates/deploy_static_site_certs
+++ b/roles/apache_server/templates/deploy_static_site_certs
@@ -32,10 +32,12 @@ run_certbot()
}
-systemctl stop apache2
+systemctl stop apache2 || true
+
for list in /etc/letsencrypt/*.list
do
certname="$(basename "$list" .list)"
run_certbot "$list" "$certname" || true
done
-systemctl start apache2
+systemctl start apache2 || true
+