fix mysql init for ubuntu 16.04

This commit is contained in:
Serghey Rodin 2016-11-25 21:03:26 +02:00
commit 65eb4c7fe8
2 changed files with 3 additions and 2 deletions

View file

@ -932,7 +932,9 @@ if [ "$mysql" = 'yes' ]; then
# Configuring MySQL/MariaDB
wget $vestacp/mysql/$mycnf -O /etc/mysql/my.cnf
mysql_install_db
if [ "$release" != '16.04' ]; then
mysql_install_db
fi
update-rc.d mysql defaults
service mysql start
check_result $? "mysql start failed"