X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/60b6200d219bb8b32a1db1c371439bc120989c1a..0020881dc68a90ea91971882beb315bd674dfe69:/cgi-bin/upgrade.pl?ds=inline diff --git a/cgi-bin/upgrade.pl b/cgi-bin/upgrade.pl index a34f4ed..e16fe8e 100755 --- a/cgi-bin/upgrade.pl +++ b/cgi-bin/upgrade.pl @@ -33,7 +33,8 @@ my $content = "animal=$animal\&ts=$ts"; $content .= "\&new_os=$os_version" if $os_version; $content .= "\&new_compiler=$compiler_version" if $compiler_version; -require "$ENV{BFConfDir}/BuildFarmWeb.pl"; +use FindBin qw($RealBin); +require "$RealBin/../BuildFarmWeb.pl"; die "no dbname" unless $dbname; die "no dbuser" unless $dbuser; @@ -152,6 +153,3 @@ $db->disconnect; print "Content-Type: text/plain\n\n"; print "request was on:\n$content\n"; - - -