From 8962bfac5e8c074856fd07809e38f21f234e9852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Tue, 28 Jun 2022 16:01:25 +0200 Subject: [PATCH] Set 'missingok' for /etc/cron.deny If the file was already deleted by administrator, we do not want to recreate it on reinstall or update. --- cronie.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cronie.spec b/cronie.spec index 52f57aa..fd362fd 100644 --- a/cronie.spec +++ b/cronie.spec @@ -6,7 +6,7 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.5.7 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT and BSD and ISC and GPLv2+ URL: https://github.com/cronie-crond/cronie Source0: https://github.com/cronie-crond/cronie/releases/download/cronie-%{version}/cronie-%{version}.tar.gz @@ -188,7 +188,7 @@ exit 0 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/crond %endif %config(noreplace) %{_sysconfdir}/sysconfig/crond -%config(noreplace) %{_sysconfdir}/cron.deny +%config(noreplace,missingok) %{_sysconfdir}/cron.deny %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/0hourly %attr(0644,root,root) /lib/systemd/system/crond.service @@ -207,6 +207,9 @@ exit 0 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/dailyjobs %changelog +* Tue Jun 28 2022 Jan Staněk - 1.5.7-5 +- Set 'missingok' for /etc/cron.deny to not recreate it on update + * Thu Jan 20 2022 Fedora Release Engineering - 1.5.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild