From 69cddfb64c3308fc214d0f98dba594b14bf78df4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 3 May 2015 15:09:56 +0000 Subject: [PATCH] unound: Add missing configuration directories --- unbound/unbound.nm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unbound/unbound.nm b/unbound/unbound.nm index c7f8eaae3..0bc050c88 100644 --- a/unbound/unbound.nm +++ b/unbound/unbound.nm @@ -30,6 +30,10 @@ build openssl-devel >= 1.0.1h-2 end + prepare_cmds + %{create_user} + end + configure_options += \ --with-conf-file=%{sysconfdir}/%{name}/unbound.conf \ --with-pidfile=%{localstatedir}/run/%{name}/%{name}.pid \ @@ -47,8 +51,11 @@ build install_cmds # Create directories. + mkdir -pv %{BUILDROOT}%{sysconfdir}/unbound/{keys.d,conf.d,local.d} mkdir -pv %{BUILDROOT}%{localstatedir}/run/%{name} + mkdir -pv %{BUILDROOT}%{sharedstatedir}/%{name} + chown -v unbound:unbound %{BUILDROOT}%{sharedstatedir}/%{name} # Install unbound config file. install -p -m 0664 %{DIR_SOURCE}/%{name}.conf \ -- 2.47.2