Allow synonyms for localhost
[spider.git] / perl / update_sysop.pl
index 168ee16a9a9e9ce1c45cffe3f242b7a3952b1599..74d6812ab6f6749f4cc9ac6629dfdb769fc83bc7 100755 (executable)
@@ -19,6 +19,7 @@ BEGIN {
        $root = "/spider"; 
        $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'};
 
+    unshift @INC, "$root/perl"; # this IS the right way round!
        unshift @INC, "$root/local";
 }
 
@@ -98,7 +99,7 @@ if (-e $lockfn) {
 
 DXUser::init(1);
 create_it();
-DXUser:finish();
+DXUser::finish();
 print "Update of $myalias on cluster $mycall successful\n";
 exit(0);