From 441f5c7c093a6bc5c589ff0ab01efcfbf62a90f8 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Tue, 23 May 2023 14:12:24 -0400 Subject: [PATCH] Use systemd-sysusers instead of %sysusers_create_compat Resolves: rhbz#2193250 --- grafana.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grafana.spec b/grafana.spec index d7506d8..a687d01 100644 --- a/grafana.spec +++ b/grafana.spec @@ -33,7 +33,7 @@ end} Name: grafana Version: 9.2.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Metrics dashboard and graph editor License: AGPLv3 URL: https://grafana.org @@ -828,7 +828,7 @@ echo "d %{_rundir}/%{name} 0755 %{GRAFANA_USER} %{GRAFANA_GROUP} -" \ install -p -m 644 -D %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf %pre -%sysusers_create_compat %{SOURCE3} +systemd-sysusers %{SOURCE3} %preun %systemd_preun grafana-server.service @@ -932,6 +932,9 @@ OPENSSL_FORCE_FIPS_MODE=1 GOLANG_FIPS=1 go test -v ./pkg/util -run TestEncryptio %changelog +* Tue May 23 2023 Jan Kurik +- Use systemd-sysusers instead of %sysusers_create_compat, which is not available in RHEL-8 + * Thu May 04 2023 Stan Cox 9.2.10-1 - Update to 9.2.10