From eb74a37ccc9b7b2c0d1cf60fc367240419fda1ac Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Fri, 17 Jan 2020 18:54:53 +0100 Subject: [PATCH] Rebase to 10.4.11 - Fix Galera Replication config file The replication requires cluster address upon startup (which is end-user specific) Disable it entirely, rather than have it failing out-of-the-box --- mariadb.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mariadb.spec b/mariadb.spec index 4d48d98..d7a3608 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -1001,6 +1001,13 @@ sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf. sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf.d/cracklib_password_check.cnf %endif +# Fix Galera Replication config file +# The replication requires cluster address upon startup (which is end-user specific). +# Disable it entirely, rather than have it failing out-of-the-box. +%if %{with galera} +sed -i 's/^wsrep_on=1/wsrep_on=0/' %{buildroot}%{_sysconfdir}/my.cnf.d/galera.cnf +%endif + %if %{without embedded} rm %{buildroot}%{_mandir}/man1/{mysql_client_test_embedded,mysqltest_embedded}.1* rm %{buildroot}%{_mandir}/man1/{mariadb-client-test-embedded,mariadb-test-embedded}.1*