From 24457d6b3131c227417c4cd3637136f22fc47e3e Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 4 May 2020 17:26:10 +0200 Subject: [PATCH] Fix mariadb configuration on Ubuntu 20.04 --- wo/cli/plugins/stack_pref.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index ba9cf77..0c46003 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -1000,8 +1000,12 @@ def post_pref(self, apt_packages, packages, upgrade=False): inno_buffer=wo_ram_innodb, inno_log_buffer=wo_ram_log_buffer, innodb_instances=wo_innodb_instance) - WOTemplate.deploy( - self, '/etc/mysql/my.cnf', 'my.mustache', data) + if os.path.exists('/etc/mysql/mariadb.conf.d/50-server.cnf'): + WOTemplate.deploy( + self, '/etc/mysql/my.cnf', 'my.mustache', data) + else: + WOTemplate.deploy( + self, '/etc/mysql/my.cnf', 'my.mustache', data) # replacing default values Log.debug(self, "Tuning MySQL configuration") if os.path.isdir('/etc/systemd/system/mariadb.service.d'):