Skip to content

Commit d925bc6

Browse files
committed
Fix systemd renewer to use sh
1 parent 8d229b9 commit d925bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/cert-renewer@.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ExecStart=/usr/bin/step ca renew --force ${CERT_LOCATION} ${KEY_LOCATION}
2222

2323
; Try to reload or restart the systemd service that relies on this cert-renewer
2424
; If the relying service doesn't exist, forge ahead.
25-
ExecStartPost=/usr/bin/env bash -c "if ! systemctl --quiet is-enabled %i.service ; then exit 0; fi; systemctl try-reload-or-restart %i"
25+
ExecStartPost=/usr/bin/env sh -c "! systemctl --quiet is-enabled %i.service || systemctl try-reload-or-restart %i"
2626
2727
[Install]
2828
WantedBy=multi-user.target

0 commit comments

Comments
 (0)