Ticket #13077: 13077-mythconverg_backup-bracket_ipv6_address_for_dbd.patch
| File 13077-mythconverg_backup-bracket_ipv6_address_for_dbd.patch, 1.2 KB (added by , 9 years ago) |
|---|
-
mythconverg_backup.
old new 13 13 14 14 # Script info 15 15 $NAME = 'MythTV Database Backup Script'; 16 $VERSION = '1.0.1 3';16 $VERSION = '1.0.12'; 17 17 18 18 # Some variables we'll use here 19 19 our ($username, $homedir, $mythconfdir, $database_information_file); … … 700 700 { 701 701 my $have_database_libs = check_database_libs; 702 702 return 0 if ($have_database_libs < 2); 703 my $temp_host = $mysql_conf{'db_host'};704 if ($temp_host =~ /:/)705 {706 if ($temp_host =~ /^(?!\[).*(?!\])$/)707 {708 $temp_host = "[$temp_host]";709 }710 }711 703 $dbh = DBI->connect("dbi:mysql:". 712 704 "database=$mysql_conf{'db_name'}:". 713 "host=$ temp_host",705 "host=$mysql_conf{'db_host'}", 714 706 "$mysql_conf{'db_user'}", 715 707 "$mysql_conf{'db_pass'}", 716 708 { PrintError => 0 });
