From: Damyan Ivanov Date: Thu, 11 Nov 2021 09:19:56 +0000 (+0000) Subject: fixed database connection string X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=099f323a72ce907c8f0183f5f924218762d35346;p=mpd-feeder.git fixed database connection string --- diff --git a/bin/mpd-feeder b/bin/mpd-feeder index 6cc9c19..95227e9 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -159,7 +159,8 @@ use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf'; method connect_db { return if $db; - $db = DBI->connect( "dbi:" . $opt->db_path, + $db = + DBI->connect( "dbi:Pg:dbname=" . $opt->db_path, $opt->db_user, $opt->db_password, { RaiseError => 1, AutoCommit => 1 } );