File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,25 @@ else
537
537
filter_cmd_line=" cat"
538
538
fi
539
539
540
+ # Disable log error if the user don't have right to write/create the file
541
+ # This is common when a user tries to install a personal mariadbd server and
542
+ # the global config in /etc is using --log-error.
543
+ # The server will internally change log-error to stderr to stderr if it cannot
544
+ # write the the log file. This code only disables the error message from a not
545
+ # writable log-error, which can be confusing.
546
+ if test -n " $log_error "
547
+ then
548
+ if test \( -e " $log_error " -a \! -w " $log_error " \) -o \( ! -e " $log_error " -a ! -w " ` dirname " $log_error " ` " \)
549
+ then
550
+ if test -n " $verbose "
551
+ then
552
+ echo " resetting log-error '$log_error ' because no write access"
553
+ fi
554
+ log_error=" "
555
+ args=" $args --skip-log-error"
556
+ fi
557
+ fi
558
+
540
559
# Configure mysqld command line
541
560
mysqld_bootstrap=" ${MYSQLD_BOOTSTRAP-$mysqld } "
542
561
mysqld_install_cmd_line ()
You can’t perform that action at this time.
0 commit comments