ソースを参照

Sync cert renewer service with docs

Carl Tashian 5 年 前
親
コミット
75f24a103a
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      systemd/cert-renewer@.service

+ 1 - 1
systemd/cert-renewer@.service

@@ -26,7 +26,7 @@ ExecStart=/usr/bin/step ca renew --force $CERT_LOCATION $KEY_LOCATION
 
 
 ; Try to reload or restart the systemd service that relies on this cert-renewer
 ; Try to reload or restart the systemd service that relies on this cert-renewer
 ; If the relying service doesn't exist, forge ahead.
 ; If the relying service doesn't exist, forge ahead.
-ExecStartPost=/usr/bin/env bash -c "if ! systemctl --quiet is-enabled %i.service ; then exit 0; fi; systemctl try-reload-or-restart %i"
+ExecStartPost=-systemctl try-reload-or-restart %i
 
 
 [Install]
 [Install]
 WantedBy=multi-user.target
 WantedBy=multi-user.target