diff options
Diffstat (limited to 'support-files/rpm/server-postin.sh')
-rw-r--r-- | support-files/rpm/server-postin.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh index 08b046dc272..57db9fd5d90 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 @@ -55,9 +53,6 @@ if [ $1 = 1 ] ; then chown -R %{mysqld_user}:%{mysqld_group} $datadir if [ ! -e $datadir/mysql ]; then - # Create data directory - mkdir -p $datadir/{mysql,test} - # Initiate databases %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} fi |