mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-19726 MariaDB server or backup RPM install assumes mysql user exists
mysqld_safe shouldn't try to mkdir or chown if --dry-run
This commit is contained in:
@@ -752,7 +752,7 @@ fi
|
|||||||
safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-@MYSQL_UNIX_ADDR@}}
|
safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-@MYSQL_UNIX_ADDR@}}
|
||||||
# Make sure that directory for $safe_mysql_unix_port exists
|
# Make sure that directory for $safe_mysql_unix_port exists
|
||||||
mysql_unix_port_dir=`dirname $safe_mysql_unix_port`
|
mysql_unix_port_dir=`dirname $safe_mysql_unix_port`
|
||||||
if [ ! -d $mysql_unix_port_dir ]
|
if [ ! -d $mysql_unix_port_dir -a $dry_run -eq 0 ]
|
||||||
then
|
then
|
||||||
if ! mkdir -p $mysql_unix_port_dir
|
if ! mkdir -p $mysql_unix_port_dir
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user