From ca89607d9dc4afc0728a184e7bd708b48e12b2b4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 3 Jun 2020 23:38:59 +0200 Subject: [PATCH] Make sure to stop the old mysql and that mariadb is started --- data/hooks/conf_regen/34-mysql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/hooks/conf_regen/34-mysql b/data/hooks/conf_regen/34-mysql index 74bafbf71..ac2395f34 100755 --- a/data/hooks/conf_regen/34-mysql +++ b/data/hooks/conf_regen/34-mysql @@ -20,9 +20,11 @@ do_post_regen() { # Playing with enable/disable allows to recreate the proper symlinks. if [ ! -e /etc/systemd/system/mysql.service ] then + systemctl stop mysql -q systemctl disable mysql -q systemctl disable mariadb -q systemctl enable mariadb -q + systemctl is-active mariadb -q || systemctl start mariadb fi if [ ! -f /etc/yunohost/mysql ]; then