--- rpms/e-smith-ldap/sme10/e-smith-ldap.spec 2023/02/06 05:26:53 1.21 +++ rpms/e-smith-ldap/sme10/e-smith-ldap.spec 2023/02/06 05:48:31 1.22 @@ -1,4 +1,4 @@ -# $Id: e-smith-ldap.spec,v 1.20 2022/11/22 19:28:40 jpp Exp $ +# $Id: e-smith-ldap.spec,v 1.21 2023/02/06 05:26:53 jpp Exp $ Summary: e-smith server and gateway - LDAP module %define name e-smith-ldap @@ -1101,6 +1101,9 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %pre +if [ -l /etc/systemd/system/slapd.service ] ; then + /usr/bin/unlink /etc/systemd/system/slapd.service +fi if [ $1 -gt 1 ] ; then if [ -e /var/service/ldap/run ] ; then /usr/bin/sv d ldap