From 0d5db8abea1ec3c35f21e2a6b781545d46c7c078 Mon Sep 17 00:00:00 2001 From: Edgar Hoch Date: Wed, 3 Mar 2021 22:04:25 +0000 Subject: [PATCH] Don't overwrite config files modified by administrator When an administrator modifies `/etc/xdg/autostart/firewall-applet.desktop`, these changes are lost on next update of the package. But the administrator should be able to configure systemwide defaults, e.g. that firewall-applet should not autostart at log in (`X-GNOME-Autostart-enabled=false`). --- firewalld.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firewalld.spec b/firewalld.spec index 5d17777..83eb0cc 100644 --- a/firewalld.spec +++ b/firewalld.spec @@ -222,7 +222,7 @@ fi %{_mandir}/man1/firewalld*.1* %{_mandir}/man5/firewall*.5* %{_sysconfdir}/modprobe.d/firewalld-sysctls.conf -%{_sysconfdir}/logrotate.d/firewalld +%config(noreplace) %{_sysconfdir}/logrotate.d/firewalld %files -n python3-firewall %attr(0755,root,root) %dir %{python3_sitelib}/firewall @@ -259,9 +259,9 @@ fi %files -n firewall-applet %{_bindir}/firewall-applet %defattr(0644,root,root) -%{_sysconfdir}/xdg/autostart/firewall-applet.desktop +%config(noreplace) %{_sysconfdir}/xdg/autostart/firewall-applet.desktop %dir %{_sysconfdir}/firewall -%{_sysconfdir}/firewall/applet.conf +%config(noreplace) %{_sysconfdir}/firewall/applet.conf %{_datadir}/icons/hicolor/*/apps/firewall-applet*.* %{_mandir}/man1/firewall-applet*.1*