Skip to content

Commit 101144f

Browse files
committed
MDEV-17640 UMASK_DIR configuration for mysql_install_db is not applied to mysql database
regression after 3db6de3 in RPMs continue creating the $datadir outside of mysql_install_db. RPMs put the socket in there, so it cannot be chmod 0700.
1 parent e9da78e commit 101144f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

support-files/rpm/server-postin.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ if [ $1 = 1 ] ; then
5353
chown -R %{mysqld_user}:%{mysqld_group} $datadir
5454

5555
if [ ! -e $datadir/mysql ]; then
56+
# Create data directory
57+
mkdir -p $datadir
58+
5659
# Initiate databases
5760
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
5861
fi

0 commit comments

Comments
 (0)