X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/54efab99b33efe20a0c3c39dd36569310c5441b5..81b6d9ed2801481e44e7479eb8bd54ec3aaf837d:/scripts/rename_system.pl diff --git a/scripts/rename_system.pl b/scripts/rename_system.pl index cf1dbde..9cee13f 100755 --- 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; @@ -37,7 +39,6 @@ my $sth = $db->prepare(q[ ]); $sth->execute(); -my $user_list_format = "%-10s %-10s %-18s %-20s %-18s %-s\n"; printf $user_list_format, "SysName", "Status", "Owner", "Email", "Distro", "Version"; while (my $row = $sth->fetchrow_hashref)