From 179f964c04d990ccea3cec2c10f62d1d5a4ca087 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Apr 19 2013 15:40:58 +0000 Subject: * fix runuser call in post --- diff --git a/unbound.spec b/unbound.spec index 2917113..65d6076 100644 --- a/unbound.spec +++ b/unbound.spec @@ -11,7 +11,7 @@ Summary: Validating, recursive, and caching DNS(SEC) resolver Name: unbound Version: 1.4.20 -Release: 6%{?dist} +Release: 7%{?dist} License: BSD Url: http://www.nlnetlabs.nl/unbound/ Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz @@ -253,8 +253,7 @@ exit 0 %post libs /sbin/ldconfig -%{_sbindir}/unbound-anchor -a %{_sharedstatedir}/%{name}/root.key -c %{_sysconfdir}/%{name}/icannbundle.pem ||: -chown unbound.unbound %{_sharedstatedir}/%{name}/root.key +%{_sbindir}/runuser \ --command="%{_sbindir}/unbound-anchor -a %{_sharedstatedir}/unbound/root.key -c %{_sysconfdir}/unbound/icannbundle.pem" \ --shell /bin/sh unbound %preun %systemd_preun unbound.service @@ -280,6 +279,9 @@ chown unbound.unbound %{_sharedstatedir}/%{name}/root.key /bin/systemctl try-restart unbound-keygen.service >/dev/null 2>&1 || : %changelog +* Fri Apr 19 2013 Paul Wouters - 1.4.20-7 +- Fix runuser call in post. + * Tue Apr 16 2013 Paul Wouters - 1.4.20-6 - /var/lib/unbound should be owned by unbound. group write is not enough