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: Hartmut Holzgraefe <hartmut@php.net>
This commit is contained in:
parent
d9092e3de7
commit
950e4f584d
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user