aports/main/mariadb/mariadb-common.post-upgrade
Natanael Copa 7fd31e497c main/mariadb: upgrade to 10.3.9 and move default config
move default config to /etc/my.cnf and /etc/my.cnf.d/. This is to make
it easier to ship default configs for clients, plugins and mysql,
without introducing conflicts.

We also add a post-upgrade script which makes sure that the
skip-networking setting does not disable networking in a pre-existing
config on upgrade.
2018-08-28 08:50:37 +00:00

7 lines
241 B
Bash

#!/bin/sh
# do not disable networking if we have a pre-existing, old config
if [ -e /etc/mysql/my.cnf ] && [ -e /etc/my.cnf.d/mariadb-server.cnf ]; then
sed -i -e 's/^skip-networking/#skip-networking/' /etc/my.cnf.d/mariadb-server.cnf
fi