Bug#510210: [pkg-kolab] Bug#510210: [libkolab-perl] bootstrap fails due to missing directory /var/lib/kolab/backups/

2008-12-30 Thread Mathieu Parent
reassign 510210 kolabd 2.2.1-20081212-1
notfound 510210 2.2.0-20080709.dfsg-2
found 510210 2.2.1-20081212-1
tags 510210 + pending
thank you


2008/12/30 Lars Kruse :
> Package: libkolab-perl
> Version: 2.2.1-20081212-1
This version is not yet uploaded, but submiting to BTS is a good idea.

> Severity: important
> Tags: patch
>
> --- Please enter the report below this line. ---
>
> when running "kolab_bootstrap -b" for the first time in a fresh lenny system,
> it breaks with the following error:
>  cannot mkdir : Datei oder Verzeichnis nicht gefunden
>  at /usr/sbin/kolab_bootstrap line 214,  line 1.
Missed this one. Thanks.
>
> It looks like the parent directory (/var/lib/kolab/backups/) should be created
> first.

> This problem can be fixed with the attached patch.
Thanks. I prefer to create the directory during installation. This
limit the patch of kolab_bootstrap.
(http://svn.debian.org/wsvn/pkg-kolab?op=comp&compare[]=...@1100&compare[]=...@1101)

This is corrected in SVN, I will upload snapshot soon.

> Thanks for your work,
> Lars
>
Thank for your test. I seems that you are the first to test 2.2.1beta !

Mathieu Parent



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#510210: [libkolab-perl] bootstrap fails due to missing directory /var/lib/kolab/backups/

2008-12-30 Thread Lars Kruse
Package: libkolab-perl
Version: 2.2.1-20081212-1
Severity: important
Tags: patch

--- Please enter the report below this line. ---

when running "kolab_bootstrap -b" for the first time in a fresh lenny system,
it breaks with the following error:
 cannot mkdir : Datei oder Verzeichnis nicht gefunden
 at /usr/sbin/kolab_bootstrap line 214,  line 1.

It looks like the parent directory (/var/lib/kolab/backups/) should be created
first.
This problem can be fixed with the attached patch.

Thanks for your work,
Lars

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.26-1-686

--- /usr/sbin/kolab_bootstrap	2008-12-30 14:48:39.0 +0100
+++ kolab_bootstrap	2008-12-30 14:51:26.0 +0100
@@ -211,6 +211,8 @@
   }
   my $epochseconds = timelocal(gmtime);
   my $backupdir="$Kolab::config{'backupdir'}/backup".$epochseconds;
+  # create the backup base directory, if necessary
+  mkdir("$Kolab::config{'backupdir'}",0700) unless (-e "$Kolab::config{'backupdir'}");
   mkdir($backupdir,0700) || die "cannot mkdir : $!";
 
   print "creating backup of LDAP repository\n";