From 074cbf76d0be8cb8613e56ae573b36de72863bb9 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 28 Sep 2015 13:48:55 +0300 Subject: [PATCH] Use dbinit instead of Gruntmaster::Data::init --- lib/Gruntmaster/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2