Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update log_error default for recent Debian/Ubuntu #1622

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcharaoui
Copy link

The mariadb-server packages now skips the creation of /var/log/mysql during installation.

see commit: https://salsa.debian.org/mariadb-team/mariadb-server/-/commit/ee379fcbdc363b42efa042c4225ed158fe184c02?merge_request_iid=27

Without this patch, with default settings, the database server encounters a startup failure.

@@ -187,6 +186,14 @@
$tmpdir = '/tmp'
$managed_dirs = ['tmpdir','basedir','datadir','innodb_data_home_dir','innodb_log_group_home_dir','innodb_undo_directory','innodb_tmpdir']

# log_error base directory absent in Debian >= 12
if ($facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['full'], '12') >= 0) or
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to check for the mariadb version and not the OS version? Or is that a Debian specific change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That really is a packaging-specific change. The directory used to be created in the package's "postinst" maintainer script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants