[packages/openldap] fix wrong instance lockfiles created by init script

glen glen at pld-linux.org
Sun Nov 24 14:54:05 CET 2013


commit ea598084f3c8aab91b8c9e693eb25c8fdb8c3d3c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 24 15:54:01 2013 +0200

    fix wrong instance lockfiles created by init script

 ldap.init     | 2 +-
 openldap.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openldap.spec b/openldap.spec
index e91a1a5..775d42f 100644
--- a/openldap.spec
+++ b/openldap.spec
@@ -25,7 +25,7 @@ Summary(ru.UTF-8):	Образцы клиентов LDAP
 Summary(uk.UTF-8):	Зразки клієнтів LDAP
 Name:		openldap
 Version:	2.4.38
-Release:	2
+Release:	3
 License:	OpenLDAP Public License
 Group:		Networking/Daemons
 Source0:	ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/%{name}-%{version}.tgz
diff --git a/ldap.init b/ldap.init
index 4a16256..a744d7e 100755
--- a/ldap.init
+++ b/ldap.init
@@ -25,7 +25,7 @@ SLAPD_CONFIG_FILE=/etc/openldap/slapd.conf
 
 # setup instance variable, can be used to sysconfig/ldap to do some magic
 SLAPD_INSTANCE=${0##*/}
-SLAPD_INSTANCE=${SLAPD_INSTANCE##[0-9][0-9]_}
+SLAPD_INSTANCE=${SLAPD_INSTANCE##[SK][0-9][0-9]}
 
 # Get service config
 [ -f /etc/sysconfig/ldap ] && . /etc/sysconfig/ldap
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openldap.git/commitdiff/ea598084f3c8aab91b8c9e693eb25c8fdb8c3d3c



More information about the pld-cvs-commit mailing list