diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-11-11 09:31:05 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-11-11 09:31:05 +0100 |
commit | 6971eaf3f017364da96144cd1fe73db5803dbb61 (patch) | |
tree | 5220dc1160a415ca9fc523dd07fee6657a72c9d8 /support-files/rpm | |
parent | d042e61f8e68f24897b88c6ff5ab213aa1eb59fd (diff) | |
download | mariadb-git-6971eaf3f017364da96144cd1fe73db5803dbb61.tar.gz |
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)
Diffstat (limited to 'support-files/rpm')
-rw-r--r-- | support-files/rpm/server-postin.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh index b5ba10bd265..b4d63815fe9 100644 --- a/support-files/rpm/server-postin.sh +++ b/support-files/rpm/server-postin.sh @@ -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} |