From: Marius Gavrilescu Date: Mon, 28 Sep 2015 10:48:55 +0000 (+0300) Subject: Use dbinit instead of Gruntmaster::Data::init X-Git-Tag: 5999.000_005~4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=074cbf76d0be8cb8613e56ae573b36de72863bb9;p=gruntmaster-daemon.git Use dbinit instead of Gruntmaster::Data::init --- diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index cc4a129..e96690e 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -153,7 +153,7 @@ my $daemon = hostname . ":$$"; sub run{ require Gruntmaster::Data; Gruntmaster::Data->import; - Gruntmaster::Data::init($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:'); + dbinit($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:'); Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf'); get_logger->info("gruntmasterd $VERSION started ($daemon)"); my $dir = tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;