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
This commit is contained in:
hotairballoon-3573 2023-09-17 22:57:34 +08:00 committed by Daniel Black
parent 8f2f8f3173
commit 19eac149b1

View File

@ -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"