Fix the openldap letsencrypt hook.

This commit is contained in:
Andrea Dell'Amico 2018-05-08 20:07:41 +02:00
parent a018f64c49
commit 3f720c9b7a
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ chown openldap $OPENLDAP_CERTDIR/privkey.pem
chmod 400 $OPENLDAP_CERTDIR/privkey.pem
echo "Restart the openldap service" >> $LE_LOG_DIR/openldap.log
service slapd restart >/dev/null 2>&1
if [ -x /bin/systemctl ] ; then
systemctl force-reload slapd >/dev/null 2>&1
else
service slapd force-reload >/dev/null 2>&1
fi
echo "Done." >> $LE_LOG_DIR/openldap.log
exit 0