Skip to content

Commit 89bd13b

Browse files
committed
follow mythtv's scanning of mysql.txt files
1 parent a5973e4 commit 89bd13b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

trunk/mythtv/db.pm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ package mythtv::db;
3535
# Read the mysql.txt file in use by MythTV.
3636
# could be in a couple places, so try the usual suspects
3737
my $found = 0;
38-
my @mysql = ("/usr/local/share/mythtv/mysql.txt",
39-
"/usr/share/mythtv/mysql.txt",
40-
"/etc/mythtv/mysql.txt",
41-
"/usr/local/etc/mythtv/mysql.txt",
42-
"$ENV{HOME}/.mythtv/mysql.txt",
43-
"mysql.txt"
38+
my @mysql = ('/usr/local/share/mythtv/mysql.txt',
39+
'/usr/share/mythtv/mysql.txt',
40+
'/etc/mythtv/mysql.txt',
41+
'/usr/local/etc/mythtv/mysql.txt',
42+
"$ENV{'MYTHCONFDIR'}/mysql.txt",
43+
"$ENV{'HOME'}/.mythtv/mysql.txt",
44+
'mysql.txt'
4445
);
4546
foreach my $file (@mysql) {
4647
next unless (-e $file);

0 commit comments

Comments
 (0)