]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
cert-enroll: add init.d support to cert-install-sssd
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 3 Mar 2024 16:12:48 +0000 (17:12 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 3 Mar 2024 16:12:48 +0000 (17:12 +0100)
src/cert-enroll/cert-install-sssd

index c3e87c3c841750bb55a74e9c931d1d7e9195fa1e..260e1440f44657b9528203490122b7e3cc4427bd 100644 (file)
@@ -59,7 +59,12 @@ rm -f $LDAP_TLS_CACERTDIR/*.0
 /usr/bin/openssl rehash $LDAP_TLS_CACERTDIR
 
 ##############################################################################
-# Restart the SSSD systemd service
+# Restart the SSSD daemon
 #
-/usr/bin/systemctl restart sssd.service
+if [ -f /usr/bin/systemctl ]
+then
+  /usr/bin/systemctl restart sssd.service
+else
+  /etc/init.d/sssd restart
+fi
 exit 0