Commit 6971eaf3 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-5030 RPM installation not running mysql_install_db if datadir exists

before running mysql_install_db check for the existence
of $datadir/mysql, not simply $datadir ($datadir might be mounted on
a separate device - exists, but empty)
parent d042e61f
......@@ -31,7 +31,7 @@ if [ $1 = 1 ] ; then
# owns all database files.
chown -R %{mysqld_user}:%{mysqld_group} $datadir
if [ ! -e $datadir ]; then
if [ ! -e $datadir/mysql ]; then
# Create data directory
mkdir -p $datadir/{mysql,test}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment