forked from ISTI-ansible-roles/ansible-roles
Fix the openldap letsencrypt hook.
This commit is contained in:
parent
a018f64c49
commit
3f720c9b7a
|
@ -27,7 +27,11 @@ chown openldap $OPENLDAP_CERTDIR/privkey.pem
|
||||||
chmod 400 $OPENLDAP_CERTDIR/privkey.pem
|
chmod 400 $OPENLDAP_CERTDIR/privkey.pem
|
||||||
|
|
||||||
echo "Restart the openldap service" >> $LE_LOG_DIR/openldap.log
|
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
|
echo "Done." >> $LE_LOG_DIR/openldap.log
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue