~diego-fmpwizard/mysql-sandbox/repl-topo-aggr-support

« back to all changes in this revision

Viewing changes to bin/make_multiple_custom_sandbox

  • Committer: Giuseppe Maxia
  • Date: 2009-04-12 13:24:56 UTC
  • Revision ID: g.maxia@gmail.com-20090412132456-1ojouazp4ryqj114
fixed bug in make_replication_sandbox and make_multiple_sandbox. If a group sandbox was the first to be created under $SANDBOX_HOME, it failed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    group_directory => 'multi_cmsb',
32
32
);
33
33
 
 
34
unless ( -d $ENV{'SANDBOX_HOME'} ) {
 
35
    mkdir $ENV{'SANDBOX_HOME'} 
 
36
        or die "can't create $ENV{'SANDBOX_HOME'} ($CHILD_ERROR) \n";
 
37
}
 
38
 
34
39
#my $install_dir;
35
40
#$install_dir = $PROGRAM_NAME;
36
41
#$install_dir =~ s{/\w+(\.pl)?$}{};
90
95
else {
91
96
    print "creating replication directory $group_directory\n" if $msb->{options}{verbose};
92
97
    mkdir $group_directory
 
98
        or die "can't create $group_directory \n";
93
99
}
94
100
 
95
101
for my $dir ( 1 .. @versions ) {