projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
and also in sh/db0sdx.pl
[spider.git]
/
perl
/
update_sysop.pl
diff --git
a/perl/update_sysop.pl
b/perl/update_sysop.pl
index af128c946238ae5c8a30f134cb1466e3762911d3..6700b98ff18c1728bae75427dfc0d350729b3cda 100755
(executable)
--- a/
perl/update_sysop.pl
+++ b/
perl/update_sysop.pl
@@
-10,7
+10,7
@@
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
-#
$Id$
+#
#
# make sure that modules are searched in the order local then perl
#
# make sure that modules are searched in the order local then perl
@@
-29,7
+29,7
@@
sub create_it
{
my $ref;
{
my $ref;
- while ($ref = DXUser
->
get(uc $mycall)) {
+ while ($ref = DXUser
::
get(uc $mycall)) {
print "old call $mycall deleted\n";
$ref->del();
}
print "old call $mycall deleted\n";
$ref->del();
}
@@
-55,7
+55,7
@@
sub create_it
print "new call $mycall added\n";
# now do one for the alias
print "new call $mycall added\n";
# now do one for the alias
- while ($ref = DXUser
->
get($myalias)) {
+ while ($ref = DXUser
::
get($myalias)) {
print "old call $myalias deleted\n";
$ref->del();
}
print "old call $myalias deleted\n";
$ref->del();
}
@@
-75,6
+75,7
@@
sub create_it
$self->{dxok} = 1;
$self->{annok} = 1;
$self->{lang} = 'en';
$self->{dxok} = 1;
$self->{annok} = 1;
$self->{lang} = 'en';
+ $self->{group} = [qw(local #9000)];
# write it away
$self->close();
# write it away
$self->close();
@@
-82,7
+83,9
@@
sub create_it
}
}
-$lockfn = "$root/perl/cluster.lck"; # lock file name
+die "\$myalias \& \$mycall are the same ($mycall)!, they must be different (hint: make \$mycall = '${mycall}-2';).\n" if $mycall eq $myalias;
+
+$lockfn = "$root/local/cluster.lck"; # lock file name
if (-e $lockfn) {
open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
my $pid = <CLLOCK>;
if (-e $lockfn) {
open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
my $pid = <CLLOCK>;