diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-03 17:33:36 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-03 17:33:36 +0300 |
commit | 229cf82dbade76804521c51aab18b92e9fda7d02 (patch) | |
tree | a6c43d180b09f09c889e0e1b3dd15c384eb99d3d | |
parent | ed62f2c98059a605ead1a9b4838c75fbd55ead19 (diff) | |
download | debian-ansible-229cf82dbade76804521c51aab18b92e9fda7d02.tar.gz |
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.
-rw-r--r-- | roles/apache_server/templates/deploy_static_site_certs | 2 |
1 files changed, 2 insertions, 0 deletions
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 |