Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1bbbb66e
Commit
1bbbb66e
authored
Feb 20, 2024
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable error messages in mysql-install-db for not writable log directory
parent
90bbeafb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+19
-0
No files found.
scripts/mysql_install_db.sh
View file @
1bbbb66e
...
...
@@ -537,6 +537,25 @@ else
filter_cmd_line
=
"cat"
fi
# Disable log error if the user don't have right to write/create the file
# This is common when a user tries to install a personal mariadbd server and
# the global config in /etc is using --log-error.
# The server will internally change log-error to stderr to stderr if it cannot
# write the the log file. This code only disables the error message from a not
# writable log-error, which can be confusing.
if
test
-n
"
$log_error
"
then
if
test
\(
-e
"
$log_error
"
-a
\!
-w
"
$log_error
"
\)
-o
\(
!
-e
"
$log_error
"
-a
!
-w
"
`
dirname
"
$log_error
"
`
"
\)
then
if
test
-n
"
$verbose
"
then
echo
"resetting log-error '
$log_error
' because no write access"
fi
log_error
=
""
args
=
"
$args
--skip-log-error"
fi
fi
# Configure mysqld command line
mysqld_bootstrap
=
"
${
MYSQLD_BOOTSTRAP
-
$mysqld
}
"
mysqld_install_cmd_line
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment