X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2Fcluster.pl;h=c2e32b5f6a1206aa510d11f9f3efb5aee47faaf3;hp=7188ed6f426189e65460842c58170ddfdc353d3e;hb=49d7cd28623df3c4accf72d48f74b4b00238a81a;hpb=5094a0b55d903d344277adf9d26b5af8e37247d8 diff --git a/perl/cluster.pl b/perl/cluster.pl index 7188ed6f..c2e32b5f 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -625,6 +625,7 @@ sub setup_start $SIG{INT} = $SIG{TERM} = sub { $ending = 10; }; } + # setup location of motd & issue localdata_mv($motd); $motd = localdata($motd); @@ -656,14 +657,14 @@ sub setup_start { die "\$myalias \& \$mycall are the same ($mycall)!, they must be different (hint: make \$mycall = '${mycall}-2';). Oh and don't forget to rerun create_sysop.pl!" if $mycall eq $myalias; my $ref = DXUser::get($mycall); - die "$mycall missing, run the create_sysop.pl script and please RTFM" unless $ref && $ref->priv == 9; + die "\$mycall missing, run the create_sysop.pl script and please RTFM" unless $ref && $ref->priv == 9; my $oldsort = $ref->sort; if ($oldsort ne 'S') { $ref->sort('S'); dbg("Resetting node type from $oldsort -> DXSpider ('S')"); } $ref = DXUser::get($myalias); - die "$myalias missing, run the create_sysop.pl script and please RTFM" unless $ref && $ref->priv == 9; + die "\$myalias missing, run the create_sysop.pl script and please RTFM" unless $ref && $ref->priv == 9; $oldsort = $ref->sort; if ($oldsort ne 'U') { $ref->sort('U'); @@ -671,6 +672,23 @@ sub setup_start } } + # make sure that mycall, myalias and homenode are upper case; + my $flag = 0; + if ($mycall =~ /[a-z]/) { + LogDbg('err', "\$mycall '$mycall' contains lower case letters, correcting"); + $mycall = uc $mycall; + ++$flag; + } + if ($myalias =~ /[a-z]/) { + LogDbg('err', "\$myalias '$myalias' contains lower case letters, correcting"); + $myalias = uc $myalias; + ++$flag; + } + if ($flag) { + LogDbg('err', "DXVars.pm has $flag errors. See above. Please edit DXVars.pm to correct"); + sleep 10; + } + # read any route cache there might be Route::read_cache() if $save_route_cache;