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:
Hartmut Holzgraefe 2022-10-16 19:18:40 +02:00 committed by GitHub
parent d9092e3de7
commit 950e4f584d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
{