summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--support-files/rpm/server-postin.sh2
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}