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

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