From 241d797f858d10aee0d82895e03ebe019679e64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 11 Feb 2025 15:35:17 +0100 Subject: [PATCH] Add sysusers.d config file to allow rpm to create users/groups automatically See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers. --- galera.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/galera.spec b/galera.spec index ecf51d4..0911ba8 100644 --- a/galera.spec +++ b/galera.spec @@ -3,7 +3,7 @@ ExcludeArch: %{ix86} Name: galera Version: 26.4.21 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Synchronous multi-master wsrep provider (replication engine) License: GPL-2.0-only @@ -20,7 +20,6 @@ Patch1: docs.patch Patch2: network.patch BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel -Requires(pre): /usr/sbin/useradd Requires: nmap-ncat Requires: procps-ng @@ -40,6 +39,11 @@ description of Galera replication engine see https://www.galeracluster.com web. %patch -P1 -p1 %patch -P2 -p1 +# Create a sysusers.d config file +cat >galera.sysusers.conf </dev/null 2>&1 || : # Fixup after upgrading on system before systemd unit rename unlink /etc/systemd/system/garb.service || : @@ -142,9 +147,13 @@ unlink /etc/systemd/system/garb.service || : %doc %{_docdir}/galera/COPYING %doc %{_docdir}/galera/LICENSE.asio %doc %{_docdir}/galera/README-MySQL +%{_sysusersdir}/galera.conf %changelog +* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 26.4.21-2 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Wed Feb 05 2025 Michal Schorm - 26.4.21-1 - Rebase to 26.4.21