From b9dea911bf8e3d4d8fc57ce3ef15ab0e2ab4d076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Sat, 27 Jul 2019 15:56:58 -0300 Subject: [PATCH] Extend mysql_instal_db to search plugins also from lib/*/mariadb19/plugin In Debian official the MariaDB plugins (.so files) go to a separate versioned directory so that upgrades and dependencies will work correctly. This change extends this script to check the /usr/lib/*/mariadb19/.. directory in addition to what it already does. Without this change the script fails with: $ mysql_install_db ... Cannot change ownership of the '/auth_pam_tool_dir' directory to the 'mysql' user. Check that you have the necessary permissions and try again. --- scripts/mysql_install_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index 253cad72e0b..caa575dc091 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -358,7 +358,7 @@ then cannot_find_file fill_help_tables.sql @pkgdata_locations@ exit 1 fi - plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin` + plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin` pamtooldir=$plugindir # relative from where the script was run for a relocatable install elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mysqld"