From 19eac149b1043be712763a9dca115ce26e7c5823 Mon Sep 17 00:00:00 2001 From: hotairballoon-3573 <15198894161@139.com> Date: Sun, 17 Sep 2023 22:57:34 +0800 Subject: [PATCH] MDEV-32142 mariadb-install-db shows warning on missing directory /auth_pam_tool_dir Without pam compiled there will be no auth_pam_tool_dir, so check this before attempting something that will error. Reviewer: Sergei Golubchik / Daniel Black --- 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 e358aeea551..79b566ec3c5 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -492,7 +492,7 @@ done if test -n "$user" then - if test -z "$srcdir" -a "$in_rpm" -eq 0 + if test -z "$srcdir" -a "$in_rpm" -eq 0 -a -d "$pamtooldir/auth_pam_tool_dir" then chown 0 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool" && \ chmod 04755 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool"