mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 03:47:16 +02:00
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.
7 lines
241 B
Bash
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
|
|
|