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

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