--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
-@@ -359,6 +359,14 @@ then
+@@ -371,6 +371,14 @@ then
exit 1
fi
plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
+ fi
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"
-@@ -478,7 +486,9 @@ do
+ elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mariadbd"
+@@ -503,7 +511,9 @@ do
fi
done
+# we can revisit.
+if test -n ""
then
- chown $user "$pamtooldir/auth_pam_tool_dir" && \
- chmod 0700 "$pamtooldir/auth_pam_tool_dir"
-@@ -499,6 +509,10 @@ then
+ if test -z "$srcdir" -a "$in_rpm" -eq 0
+ then
+@@ -524,6 +534,10 @@ then
echo
fi
fi