Fix MySQL Backup on 18.04

Trying to fix this error: #1946
This commit is contained in:
NIKTONIKTO717 2019-10-09 08:39:01 +02:00 committed by GitHub
commit 6d58e98042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,6 +534,11 @@ if [ "$release" = '16.04' ] && [ -e '/etc/init.d/mysql' ]; then
chown mysql:mysql /var/lib/mysql
mysqld --initialize-insecure
fi
if [ "$release" = '18.04' ] && [ -e '/etc/init.d/mysql' ]; then
mkdir -p /var/lib/mysql > /dev/null 2>&1
chown mysql:mysql /var/lib/mysql
mysqld --initialize-insecure
fi
# Backup Vesta
service vesta stop > /dev/null 2>&1