From d925bc6ba9611cb474d2d63bcebfd9b292ad097a Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Mon, 22 Nov 2021 11:03:05 -0800 Subject: [PATCH] Fix systemd renewer to use sh --- systemd/cert-renewer@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/cert-renewer@.service b/systemd/cert-renewer@.service index a9962c2e..7d305d8a 100644 --- a/systemd/cert-renewer@.service +++ b/systemd/cert-renewer@.service @@ -22,7 +22,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=/usr/bin/env bash -c "if ! systemctl --quiet is-enabled %i.service ; then exit 0; fi; systemctl try-reload-or-restart %i" +ExecStartPost=/usr/bin/env sh -c "! systemctl --quiet is-enabled %i.service || systemctl try-reload-or-restart %i" [Install] WantedBy=multi-user.target