diff options
Diffstat (limited to 'main/mariadb/mariadb-common.post-upgrade')
-rw-r--r-- | main/mariadb/mariadb-common.post-upgrade | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/mariadb/mariadb-common.post-upgrade b/main/mariadb/mariadb-common.post-upgrade new file mode 100644 index 0000000000..2809398355 --- /dev/null +++ b/main/mariadb/mariadb-common.post-upgrade @@ -0,0 +1,7 @@ +#!/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 + |