New server, FileBin instead of $ENV{BFConfDir}, and custom Captcha
[buildfarm-server.git] / scripts / rename_system.pl
index 9e320cb8c25295872fbae60b34a8b6db723aec01..9cee13fc635dba98530be37a8ff5fbd891201416 100755 (executable)
@@ -10,7 +10,9 @@ die "Must pass current and new sysnames\n" unless scalar @ARGV == 2;
 use vars qw($dbhost $dbname $dbuser $dbpass $dbport
             $user_list_format
 );
-require "$ENV{BFConfDir}/BuildFarmWeb.pl";
+
+use FindBin qw($RealBin);
+require "$RealBin/../BuildFarmWeb.pl";
 
 die "no dbname" unless $dbname;
 die "no dbuser" unless $dbuser;