Commit a3448b23 authored by Otto Kekäläinen's avatar Otto Kekäläinen

Deb: Fix upgrade from Percona.com by ensuring server uses mariadb.cnf

Upstreamed from https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/13e3a7903e5c72e70c02b98a3e51a6de70b9b6ef
parent ea568419
......@@ -23,6 +23,18 @@ case "$1" in
echo " ln -sf mariadb.cnf /etc/mysql/my.cnf"
fi
fi
# Note that MySQL in Debian runs the configure-symlinks from the
# mysql-server-x.x.postinst and postrm files, while the MySQL.com (and
# Percona.com) packaging triggers update-alternatives directly form the
# mysql-common (and percona-x-common) package using priority 200.
#
# Thus, we need to ensure here that mariadb.cnf indeed became the primary
# alternative and override with priority 500 if needed.
if ! update-alternatives --query my.cnf | grep --quiet "Value: /etc/mysql/mariadb.cnf"
then
update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/mariadb.cnf" 500 || true
fi
;;
esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment