[pkg-kolab] Kolab_bootstrap - copying ldap data to slave

Price,Neil NPrice at gibb.co.za
Tue Oct 21 13:49:12 UTC 2008


 
> > Stopping OpenLDAP: slapd.
> > ssh -CA kolab.gibb.co.za  -C /var/lib/ldap -pcf - 
> openldap-data |  -C
> > /var/lib/ldap -pxf -
> > sh: -C: command not found
> > root at kolab.gibb.co.za's password:
> 
> Was that meant to be 
> 
> ssh -CA kolab.gibb.co.za  tar -C /var/lib/ldap -pcf - 
> openldap-data |  tar
> -C  /var/lib/ldap -pxf -
> 
> ?

Continuing my monologue here... I think line 835 of kolab_bootstrap should
read:

kolab_system("ssh -CA $master_host 'tar -C /var/lib/ldap/ -pcf  - . ' | tar
-C /var/lib/ldap/ -pxf - ");

Agree?

Theres also an interesting construct on line 844:

  if ("no" eq "yes") {
 
Huh?



More information about the pkg-kolab-devel mailing list