mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make sure to stop the old mysql and that mariadb is started
This commit is contained in:
parent
489c6b67c3
commit
ca89607d9d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue