git://git.exim.org
/
buildfarm-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New server, FileBin instead of $ENV{BFConfDir}, and custom Captcha
[buildfarm-server.git]
/
scripts
/
rename_system.pl
diff --git
a/scripts/rename_system.pl
b/scripts/rename_system.pl
index 9e320cb8c25295872fbae60b34a8b6db723aec01..9cee13fc635dba98530be37a8ff5fbd891201416 100755
(executable)
--- a/
scripts/rename_system.pl
+++ b/
scripts/rename_system.pl
@@
-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;