2016-06-27 22:52:39 +02:00
|
|
|
[Unit]
|
2016-07-07 13:36:29 +02:00
|
|
|
Description=Renew Let's Encrypt certificates
|
2016-06-27 22:52:39 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2016-08-17 11:27:33 +02:00
|
|
|
ConditionFileIsExecutable={{ letsencrypt_certbot_dest }}
|
2016-06-27 22:52:39 +02:00
|
|
|
ExecStart={{ letsencrypt_certbot_dest }} renew --standalone --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx"
|