Răsfoiți Sursa

Revert systemd renewer unit change that was incorrect

This reverts commit 75f24a103adeee22a24e2b5e3bcd664c8d43340c.
Carl Tashian 5 ani în urmă
părinte
comite
25325b6970
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
 ; If the relying service doesn't exist, forge ahead.
-ExecStartPost=-systemctl try-reload-or-restart %i
+ExecStartPost=/usr/bin/env bash -c "if ! systemctl --quiet is-enabled %i.service ; then exit 0; fi; systemctl try-reload-or-restart %i"
 
 [Install]
 WantedBy=multi-user.target