]> git.proxmox.com Git - dab.git/commitdiff
fix error in default debian mysql my.cnf for jessie
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 2 Oct 2014 06:53:26 +0000 (08:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 2 Oct 2014 06:53:26 +0000 (08:53 +0200)
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index f0aca7e701952b2fb584ba90bf9936fabbe3f9ea..9cd9bf7ecf7b2b0b61b02a4a818f684cbe714d93 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -1517,7 +1517,12 @@ sub ve_mysql_bootstrap {
     my $cmd;
 
     my $suite = $self->{config}->{suite};
+
+    if ($suite eq 'jessie') {
+       my $rootdir = $self->vz_root_dir();
+       $self->run_command ("sed -e 's/^key_buffer\\s*=/key_buffer_size =/' -i $rootdir/etc/mysql/my.cnf");
+    }
+
     if ($suite eq 'squeeze' || $suite eq 'wheezy' || $suite eq 'jessie') {
        $cmd = "/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables";