remove any leading ::ffff: on ipv4 addresses
[spider.git] / perl / create_sysop.pl
index b85c60b770677b0f7cebadae00d1a2c017182b5b..99f3e0600d7b045177fb1d934df281c9f6881fb7 100755 (executable)
@@ -19,6 +19,7 @@ BEGIN {
        unshift @INC, "$root/local";
 }
 
+use DXVars;
 use SysVar;
 use DXUser;
 use DXUtil;
@@ -80,7 +81,7 @@ sub create_it
 
 die "\$myalias \& \$mycall are the same ($mycall)!, they must be different (hint: make \$mycall = '${mycall}-2';).\n" if $mycall eq $myalias;
 
-$lockfn = localdata("cluster.lck");       # lock file name
+$lockfn = "$main::local_data/cluster.lck";       # lock file name (now in local data)
 if (-e $lockfn) {
        open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
        my $pid = <CLLOCK>;