[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CMU RaQ4r to XTR



> Installed the CMU on the XTR and RaQ4r. Followed all the steps with regards
> to migrating a specific virtual site and have encountered the following
> problems

What version of CMU are you using?

> 1) .htaccess files are copied across with the original /home/sites/sitex
> path to the htpasswd file

I don't ever change content. 

> 2) UIDs and GIDs from the raq4r are preserved on the XTR instead of
> changing to the new site location

see below.

> 3) Front page extensions have to be reset for all sites with FP enabled.

Frontpage is weird and sometimes this doesn't need to be done.


> I am concerned that the CMU program is not changing ownership to what it
> should be.  Migrating from a RaQXTR (the older XTR models) worked
> successfully save for the .htaccess and fp issue.

> Is there an issue with the CMU program? is there an easy fix for this or I
> am going to have to reset the permissions for the 100+ sites I have to
> migrate.

How many sites where on the box before you imported?

So all the files in the directories are owned by siteY but the site is really
site x?  And this happened to all sites?

Any chance you could mail me (not to the list) the /home/cmu/cmu.log file?

Here is a little script that should fix all group permissions for you.

#!/usr/bin/perl
use strict;

my ($cnt, $site, $dir);
if(@ARGV) { $cnt = $ARGV[0]; } 
else { $cnt = 1000; }

my $cmd = '/bin/chgrp';
my $baseDir = '/home/sites';

for(my $i = 1;$i <= $cnt;$i++) {
    $site = 'site'.$i;
    $dir = $baseDir.'/'.$site;
    next if(! -d $dir);
    qx($cmd -R $site $dir); 

}
exit 0;


Jeff-