Use common path for systemctl in lets encrypt cron

Currently the nginx reload cron fails on Debian 9 because the path to
systemctl is /bin/systemctl rather than /usr/bin/systemctl.

CentOS 7 places systemctl in both /bin and /usr/bin, so we can just use
/bin/systemctl as the full path.
This commit is contained in:
Lee Verberne 2019-03-16 20:35:11 +01:00
parent de6e7ebb4b
commit d90bc20690

View File

@ -92,7 +92,7 @@
hour: 4 hour: 4
minute: 20 minute: 20
day: "*/5" day: "*/5"
job: /usr/bin/systemctl reload matrix-nginx-proxy.service job: /bin/systemctl reload matrix-nginx-proxy.service
when: matrix_nginx_proxy_enabled when: matrix_nginx_proxy_enabled
when: "matrix_ssl_retrieval_method == 'lets-encrypt'" when: "matrix_ssl_retrieval_method == 'lets-encrypt'"