mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make sure mysql is an alias to mariadb
This commit is contained in:
parent
852cd14c4b
commit
e24191ce64
1 changed files with 10 additions and 0 deletions
|
@ -15,6 +15,16 @@ do_pre_regen() {
|
||||||
do_post_regen() {
|
do_post_regen() {
|
||||||
regen_conf_files=$1
|
regen_conf_files=$1
|
||||||
|
|
||||||
|
# mysql is supposed to be an alias to mariadb... but in some weird case is not
|
||||||
|
# c.f. https://forum.yunohost.org/t/mysql-ne-fonctionne-pas/11661
|
||||||
|
# Playing with enable/disable allows to recreate the proper symlinks.
|
||||||
|
if [ ! -e /etc/systemd/system/mysql.service ]
|
||||||
|
then
|
||||||
|
systemctl disable mysql -q
|
||||||
|
systemctl disable mariadb -q
|
||||||
|
systemctl enable mariadb -q
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f /etc/yunohost/mysql ]; then
|
if [ ! -f /etc/yunohost/mysql ]; then
|
||||||
|
|
||||||
# ensure that mysql is running
|
# ensure that mysql is running
|
||||||
|
|
Loading…
Add table
Reference in a new issue