Switch from the git version of certbot to the Ubuntu PPA
This commit is contained in:
parent
fc265014de
commit
fa27187f11
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue