From d82a90e27f8f0b4b02c4fab3be06ac8857e5c529 Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Thu, 5 Sep 2019 10:21:04 +0300 Subject: [PATCH] Add read rights to /etc/my.cnf.d/* on test VMs In some configs /etc/my.cnf.d/* files access rights are very limited and server can not read configuration. It leads to broken settings and unability to setup replication during the test --- maxscale-system-test/mariadb_nodes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maxscale-system-test/mariadb_nodes.cpp b/maxscale-system-test/mariadb_nodes.cpp index 97a9d5c76..e4e6d0722 100644 --- a/maxscale-system-test/mariadb_nodes.cpp +++ b/maxscale-system-test/mariadb_nodes.cpp @@ -1367,7 +1367,8 @@ int Mariadb_nodes::prepare_server(int i) // Note: These should be done by MDBCI ssh_node(i, "test -d /etc/apparmor.d/ && " "ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/usr.sbin.mysqld && " - "sudo service apparmor restart", true); + "sudo service apparmor restart && " + "chmod a+r -R /etc/my.cnf.d/*", true); int ec; char* version = ssh_node_output(i, "/usr/sbin/mysqld --version", false, &ec);