version 1.18, 2021/03/13 19:38:32
|
version 1.19, 2021/03/22 21:15:53
|
Line 244 if ($dist =~ /^fedora(\d+)$/) {
|
Line 244 if ($dist =~ /^fedora(\d+)$/) {
|
} |
} |
} |
} |
|
|
|
my $mysqlfile = '/etc/my.cnf'; |
|
if ($dist =~ /^ubuntu(\d+)$/) { |
|
my $version = $1; |
|
$mysqlfile = '/etc/mysql/my.cnf'; |
|
if ($version > 14) { |
|
$mysqlfile = '/etc/mysql/mysql.conf.d/mysqld.cnf'; |
|
} |
|
} |
|
|
my $mysql_global_status = |
my $mysql_global_status = |
&update_file('/etc/my.cnf', |
&update_file($mysqlfile, |
[{section =>'mysqld', |
[{section =>'mysqld', |
key =>'wait_timeout=', |
key =>'wait_timeout=', |
value =>'31536000', }]); |
value =>'31536000', }]); |