Package: replicator
Version: 3.1-sarge-1.6
Severity: normal

The script 'repli-update' wants to make sure that the directory
structure within /var matches the master, however the rsync command is
not robust against things such as the automounter that will mount
stuff inside of /var which cannot be deleted.

The following patch (indented 4) seems to fix the problem.

    Index: repli-update
    ===================================================================
    --- repli-update    (revision 46)
    +++ repli-update    (working copy)
    @@ -263,11 +263,11 @@
     #excludes possibles: /spool/squid/*    includes possibles: yp/nicknames  

     #recreate var directory structure
    -dosystem("rsync $rsyncopt  --include '+ */' --exclude '- *' 
${rsync_src}/var/. $destdir/var/.");
    +dosystem("rsync $rsyncopt --exclude '- *nfs*' --include '+ */' --exclude 
'- *' ${rsync_src}/var/. $destdir/var/.");

     #copie only content of directories in @var_include
     foreach (@var_include) {
    -  dosystem("rsync $rsyncopt ${rsync_src}/var/$_/ $destdir/var/$_ 2>&1");
    +  dosystem("rsync $rsyncopt --exclude '- *nfs*' ${rsync_src}/var/$_/ 
$destdir/var/$_ 2>&1");
     }

     if ($dryrun) {


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.5-7.151-default
Locale: LANG=C, LC_CTYPE=da_DK (charmap=ISO-8859-1)

Versions of packages replicator depends on:
ii  cdebootstrap              0.3.13         Bootstrap a Debian system
ii  dialog                    1.0-20060221-1 Displays user-friendly dialog boxe
ii  grub                      0.97-16.1      GRand Unified Bootloader
ii  nfs-kernel-server         1:1.0.10-1     Kernel NFS server support
ii  perl                      5.8.8-6.1      Larry Wall's Practical Extraction 
ii  rsync                     2.6.8-2        fast remote file copy program (lik
ii  wget                      1.10.2-2       retrieves files from the web

replicator recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to