summaryrefslogtreecommitdiff
path: root/support-files/rpm/server-postin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support-files/rpm/server-postin.sh')
-rw-r--r--support-files/rpm/server-postin.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh
index 08b046dc272..0a5bac73f0b 100644
--- a/support-files/rpm/server-postin.sh
+++ b/support-files/rpm/server-postin.sh
@@ -17,9 +17,7 @@ fi
if [ $1 = 1 ] ; then
if [ -x /usr/bin/systemctl ] ; then
/usr/bin/systemctl daemon-reload >/dev/null 2>&1
- fi
-
- if [ -x /sbin/chkconfig ] ; then
+ elif [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --add mysql
fi
@@ -56,7 +54,7 @@ if [ $1 = 1 ] ; then
if [ ! -e $datadir/mysql ]; then
# Create data directory
- mkdir -p $datadir/{mysql,test}
+ mkdir -p $datadir
# Initiate databases
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}