ソースを参照

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.
pull/118/head
Lee Verberne 7年前
コミット
d90bc20690
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_lets_encrypt.yml

+ 1
- 1
roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_lets_encrypt.yml ファイルの表示

@@ -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'"




読み込み中…
キャンセル
保存