Skip to content

Commit 19eac14

Browse files
heyingquan0030grooverdan
authored andcommitted
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
1 parent 8f2f8f3 commit 19eac14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mysql_install_db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ done
492492

493493
if test -n "$user"
494494
then
495-
if test -z "$srcdir" -a "$in_rpm" -eq 0
495+
if test -z "$srcdir" -a "$in_rpm" -eq 0 -a -d "$pamtooldir/auth_pam_tool_dir"
496496
then
497497
chown 0 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool" && \
498498
chmod 04755 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool"

0 commit comments

Comments
 (0)