We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5973e4 commit 89bd13bCopy full SHA for 89bd13b
trunk/mythtv/db.pm
@@ -35,12 +35,13 @@ package mythtv::db;
35
# Read the mysql.txt file in use by MythTV.
36
# could be in a couple places, so try the usual suspects
37
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"
+ my @mysql = ('/usr/local/share/mythtv/mysql.txt',
+ '/usr/share/mythtv/mysql.txt',
+ '/etc/mythtv/mysql.txt',
+ '/usr/local/etc/mythtv/mysql.txt',
+ "$ENV{'MYTHCONFDIR'}/mysql.txt",
+ "$ENV{'HOME'}/.mythtv/mysql.txt",
44
+ 'mysql.txt'
45
);
46
foreach my $file (@mysql) {
47
next unless (-e $file);
0 commit comments