Alan Orth
60c498f5ae
Just in case, we'd better make sure that certbot is installed and usable (+x) before we try running it.
8 lines
273 B
Django/Jinja
8 lines
273 B
Django/Jinja
[Unit]
|
|
Description=Renew Let's Encrypt certificates
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ConditionFileIsExecutable={{ letsencrypt_certbot_dest }}
|
|
ExecStart={{ letsencrypt_certbot_dest }} renew --standalone --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx"
|