зеркало из https://github.com/mozilla/gecko-dev.git
Write localconfig out before trying to connect to the database if it does not exist.
This commit is contained in:
Родитель
72b8e2fa6f
Коммит
4fd3faeab5
|
@ -22,6 +22,23 @@
|
|||
|
||||
use strict;
|
||||
|
||||
BEGIN {
|
||||
unless (-e localconfig) {
|
||||
open(OUT, ">localconfig");
|
||||
print OUT <<EOT;
|
||||
our $db_host = "";
|
||||
our $db_name = "";
|
||||
our $db_user = "";
|
||||
our $db_pass = "";
|
||||
|
||||
our $user_cookiename = "litmus_login";
|
||||
our $sysconfig_cookiename = "litmustestingconfiguration";
|
||||
EOT
|
||||
close(OUT);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
use Litmus::DB::Product;
|
||||
use Litmus::DB::Testgroup;
|
||||
use Litmus::DB::Subgroup;
|
||||
|
@ -372,16 +389,3 @@ Litmus::DB::Result->find_or_create(name => "Test unclear/broken", style => "back
|
|||
# javascript cache
|
||||
rebuildCache();
|
||||
|
||||
unless (-e localconfig) {
|
||||
open(OUT, ">localconfig");
|
||||
print OUT <<EOT;
|
||||
our $db_host = "";
|
||||
our $db_name = "";
|
||||
our $db_user = "";
|
||||
our $db_pass = "";
|
||||
|
||||
our $user_cookiename = "litmus_login";
|
||||
our $sysconfig_cookiename = "litmustestingconfiguration";
|
||||
EOT
|
||||
close(OUT);
|
||||
}
|
Загрузка…
Ссылка в новой задаче