]> git.ktnx.net Git - mpd-feeder.git/commitdiff
fixed database connection string
authorDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 09:19:56 +0000 (09:19 +0000)
committerDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 09:19:56 +0000 (09:19 +0000)
bin/mpd-feeder

index 6cc9c196dcf02d7cee1488e367251237cef97139..95227e9c6dbfd2934a9372d838fafe638233ce55 100755 (executable)
@@ -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 } );