Switch from the git version of certbot to the Ubuntu PPA

This commit is contained in:
Greg 2019-03-14 10:49:47 +01:00
parent fc265014de
commit fa27187f11
1 changed files with 7 additions and 7 deletions

View File

@ -7,14 +7,14 @@
# All rights reserved - Do Not Redistribute
#
git "/usr/local/certbot" do
repository "https://github.com/certbot/certbot"
action :sync
revision "v0.26.1"
user "root"
group "root"
# Install certbot and set up hooks
apt_repository "certbot" do
uri "ppa:certbot/certbot"
end
package "certbot"
letsencrypt_renew_hook = <<-EOF
#!/usr/bin/env bash
@ -55,5 +55,5 @@ cron "renew Let's Encrypt certificates" do
hour "4"
mailto "logs@5apps.com"
# The hook is only executed if a cert has been renewed
command "/usr/local/certbot/certbot-auto renew --deploy-hook letsencrypt_renew_hook -n 1> /dev/null"
command "/usr/bin/certbot renew --deploy-hook letsencrypt_renew_hook -n 1> /dev/null"
end