1
0
forked from pool/openldap2

- enable systemd slapd service if SysV ldap was enabled (bnc#881476)

OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=121
This commit is contained in:
Christian Kornacker 2014-06-10 10:53:07 +00:00 committed by Git OBS Bridge
parent a538fd7853
commit 72acdcaa0a
4 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 6 13:16:24 UTC 2014 - ckornacker@suse.com
- enable systemd slapd service if SysV ldap was enabled (bnc#881476)
-------------------------------------------------------------------
Tue May 13 15:20:40 UTC 2014 - coolo@suse.com

View File

@ -554,6 +554,9 @@ then
cp -p --remove-destination /etc/openldap/schema/* $TEMPDIR
echo $TEMPDIR > /etc/openldap/UPDATE_NEEDED ;
fi
if chkconfig ldap 2>&1 | grep -q on; then
touch /var/run/enable_slapd_service
fi
%service_add_pre slapd.service
%post
@ -564,6 +567,9 @@ fi
%{fillup_only -n openldap ldap}
%{remove_and_set -n openldap OPENLDAP_RUN_DB_RECOVER}
%service_add_post slapd.service
if [ -f /var/run/enable_slapd_service ]; then
/usr/bin/systemctl --quiet enable slapd
fi
%preun
%service_del_preun slapd.service

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 6 13:16:24 UTC 2014 - ckornacker@suse.com
- enable systemd slapd service if SysV ldap was enabled (bnc#881476)
-------------------------------------------------------------------
Tue May 13 15:20:40 UTC 2014 - coolo@suse.com

View File

@ -554,6 +554,9 @@ then
cp -p --remove-destination /etc/openldap/schema/* $TEMPDIR
echo $TEMPDIR > /etc/openldap/UPDATE_NEEDED ;
fi
if /usr/bin/chkconfig ldap 2>&1 | grep -q on; then
touch /var/run/enable_slapd_service
fi
%service_add_pre slapd.service
%post
@ -564,6 +567,9 @@ fi
%{fillup_only -n openldap ldap}
%{remove_and_set -n openldap OPENLDAP_RUN_DB_RECOVER}
%service_add_post slapd.service
if [ -f /var/run/enable_slapd_service ]; then
/usr/bin/systemctl --quiet enable slapd
fi
%preun
%service_del_preun slapd.service