Commit 950e4f58 authored by Hartmut Holzgraefe's avatar Hartmut Holzgraefe Committed by GitHub

MDEV-6655: mysqld_multi default log location in wrong directory (#2285)

The mysqld_multi script template used @datadir@ as default log
destination, this is not the MariaDB datadir in this context though
but rather the -- typically write-only -- /share dir.

The correct placeholder to use here is @localstatedir@ which gets
replaced with the actual MariaDB datadir
Co-authored-by: default avatarHartmut Holzgraefe <hartmut@php.net>
parent d9092e3d
......@@ -227,7 +227,7 @@ sub defaults_for_group
####
#### Init log file. Check for appropriate place for log file, in the following
#### order: my_print_defaults mysqld datadir, @datadir@
#### order: my_print_defaults mysqld datadir, @localstatedir@
####
sub init_log
......@@ -241,7 +241,7 @@ sub init_log
}
if (!defined($logdir))
{
$logdir= "@datadir@" if (-d "@datadir@" && -w "@datadir@");
$logdir= "@localstatedir@" if (-d "@localstatedir@" && -w "@localstatedir@");
}
if (!defined($logdir))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment