Blame SOURCES/0084-make-sure-that-former-caches-are-group-writable.patch

8d5775
From 62b5e536cf965843ffcd7f9db3cc2d8176c901a2 Mon Sep 17 00:00:00 2001
8d5775
From: =?UTF-8?q?Miroslav=20Such=C3=BD?= <msuchy@redhat.com>
8d5775
Date: Wed, 13 May 2020 09:36:32 +0200
8d5775
Subject: [PATCH] make sure that former caches are group writable
8d5775
8d5775
The files previously can be just 755. We need to be sure they are group writable.
8d5775
8d5775
Resolves:
8d5775
        https://bugzilla.redhat.com/show_bug.cgi?id=1796245
8d5775
---
8d5775
 abrt.spec.in | 6 ++++++
8d5775
 1 file changed, 6 insertions(+)
8d5775
8d5775
diff --git a/abrt.spec.in b/abrt.spec.in
8d5775
index f8cebffe3..41b72071a 100644
8d5775
--- a/abrt.spec.in
8d5775
+++ b/abrt.spec.in
8d5775
@@ -695,6 +695,12 @@ exit 0
8d5775
 
8d5775
 %post addon-ccpp
8d5775
 %systemd_post abrt-ccpp.service
8d5775
+# migration from 2.14.1.18
8d5775
+if [ ! -e "%{_localstatedir}/cache/abrt-di/.migration-group-add" ]; then
8d5775
+  chmod -R g+w %{_localstatedir}/cache/abrt-di
8d5775
+  touch "%{_localstatedir}/cache/abrt-di/.migration-group-add"
8d5775
+fi
8d5775
+
8d5775
 %systemd_post abrt-journal-core.service
8d5775
 %journal_catalog_update
8d5775
 
8d5775
-- 
8d5775
2.21.3
8d5775