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
|
# All rights reserved - Do Not Redistribute
|
||||||
#
|
#
|
||||||
|
|
||||||
git "/usr/local/certbot" do
|
# Install certbot and set up hooks
|
||||||
repository "https://github.com/certbot/certbot"
|
|
||||||
action :sync
|
apt_repository "certbot" do
|
||||||
revision "v0.26.1"
|
uri "ppa:certbot/certbot"
|
||||||
user "root"
|
|
||||||
group "root"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
package "certbot"
|
||||||
|
|
||||||
letsencrypt_renew_hook = <<-EOF
|
letsencrypt_renew_hook = <<-EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
@ -55,5 +55,5 @@ cron "renew Let's Encrypt certificates" do
|
|||||||
hour "4"
|
hour "4"
|
||||||
mailto "logs@5apps.com"
|
mailto "logs@5apps.com"
|
||||||
# The hook is only executed if a cert has been renewed
|
# 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
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user