remove all $Id$ strings
[spider.git] / perl / create_sysop.pl
index fbfc776481c3b65a92e1f656706a12253fc68831..40fc6f05314392a1a38c794fcb269d801f76a3b5 100755 (executable)
@@ -6,7 +6,7 @@
 #
 # Copyright (c) 1998 Dirk Koopman G1TLH
 #
-# $Id$
+#
 # 
 
 # make sure that modules are searched in the order local then perl
@@ -75,7 +75,7 @@ sub create_it
 
 }
 
-$lockfn = "$root/perl/cluster.lck";       # lock file name
+$lockfn = "$root/local/cluster.lck";       # lock file name
 if (-e $lockfn) {
        open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
        my $pid = <CLLOCK>;
@@ -84,7 +84,9 @@ if (-e $lockfn) {
        close CLLOCK;
 }
 
-if (-e "$userfn") {
+$DXUser::v3 = 1;
+
+if (-e "$userfn.v2" || -e "$userfn.v3") {
        print "Do you wish to destroy your user database (THINK!!!) [y/N]: ";
        $ans = <STDIN>;
        if ($ans =~ /^[Yy]/) {