You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
593 B

diff --git a/heartbeat/slapd b/heartbeat/slapd
index 6661984..ffb40e8 100755
--- a/heartbeat/slapd
+++ b/heartbeat/slapd
@@ -526,10 +526,14 @@ parameters=$OCF_RESKEY_parameters
pid_file=$OCF_RESKEY_pidfile
if [ -z "$config" ]; then
- if [ -e "/etc/ldap/slapd.d" ]; then
- config="/etc/ldap/slapd.d"
- else
- config="/etc/ldap/slapd.conf"
+ config_dirname="/etc/ldap"
+ if [ -e "/etc/openldap" ]; then
+ config_dirname="/etc/openldap"
+ fi
+
+ config="$config_dirname/slapd.conf"
+ if [ -e "$config_dirname/slapd.d" ]; then
+ config="$config_dirname/slapd.d"
fi
fi