Make sure to stop the old mysql and that mariadb is started

This commit is contained in:
Alexandre Aubin 2020-06-03 23:38:59 +02:00
parent 489c6b67c3
commit ca89607d9d

View file

@ -20,9 +20,11 @@ do_post_regen() {
# Playing with enable/disable allows to recreate the proper symlinks. # Playing with enable/disable allows to recreate the proper symlinks.
if [ ! -e /etc/systemd/system/mysql.service ] if [ ! -e /etc/systemd/system/mysql.service ]
then then
systemctl stop mysql -q
systemctl disable mysql -q systemctl disable mysql -q
systemctl disable mariadb -q systemctl disable mariadb -q
systemctl enable mariadb -q systemctl enable mariadb -q
systemctl is-active mariadb -q || systemctl start mariadb
fi fi
if [ ! -f /etc/yunohost/mysql ]; then if [ ! -f /etc/yunohost/mysql ]; then