[pkg-kolab] r1446 - pkg-kolab_testsuite

Mathieu Parent sathieu at alioth.debian.org
Sat Nov 28 16:47:47 UTC 2009


Author: sathieu
Date: 2009-11-28 16:47:47 +0000 (Sat, 28 Nov 2009)
New Revision: 1446

Modified:
   pkg-kolab_testsuite/testsuite
Log:
Enable ldaps, also on lenny

Modified: pkg-kolab_testsuite/testsuite
===================================================================
--- pkg-kolab_testsuite/testsuite	2009-11-28 16:29:10 UTC (rev 1445)
+++ pkg-kolab_testsuite/testsuite	2009-11-28 16:47:47 UTC (rev 1446)
@@ -874,9 +874,9 @@
     if($domid == 0) {
         print "* Enabling LDAPS (master):\n";
         remote_command($domip, 
-            'sed -i.bck \'s@^SLAPD_SERVICES="ldap:/// ldapi:///"'.
-                              '@SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"@\' '.
-                              '/etc/default/slapd');
+            'grep -q \'^SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"\' /etc/default/slapd || cat <<EOF >> /etc/default/slapd
+SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
+EOF');
     }
 
     # ====




More information about the pkg-kolab-devel mailing list