cert-enroll: add init.d support to cert-install-sssd

This commit is contained in:
Andreas Steffen 2024-03-03 17:12:48 +01:00
parent f994e0a428
commit 06afb5f109

View 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