Kea can not create log files (RHEL-78206)
Resolves: RHEL-78206
This commit is contained in:
parent
08ce1f8ca9
commit
0132c3b604
10
kea.spec
10
kea.spec
@ -258,6 +258,15 @@ install -dm 0755 %{buildroot}/run/kea/
|
||||
|
||||
install -Dpm 0644 %{S:15} %{buildroot}%{_tmpfilesdir}/kea.conf
|
||||
|
||||
# Create log dir /var/log/kea for logging, since kea user can't create log files in /var/log
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/kea
|
||||
sed -i -e 's|log\/|log\/kea\/|g' \
|
||||
%{buildroot}%{_sysconfdir}/kea/kea-dhcp4.conf \
|
||||
%{buildroot}%{_sysconfdir}/kea/kea-dhcp6.conf \
|
||||
%{buildroot}%{_sysconfdir}/kea/kea-dhcp-ddns.conf \
|
||||
%{buildroot}%{_sysconfdir}/kea/kea-ctrl-agent.conf
|
||||
# %{buildroot}%{_sysconfdir}/kea/kea-netconf.conf # TODO: no support for netconf/sysconf yet
|
||||
|
||||
|
||||
%pre
|
||||
%sysusers_create_compat %{S:16}
|
||||
@ -320,6 +329,7 @@ install -Dpm 0644 %{S:15} %{buildroot}%{_tmpfilesdir}/kea.conf
|
||||
%dir %attr(0755,kea,kea) %{_rundir}/kea/
|
||||
%{_tmpfilesdir}/kea.conf
|
||||
%{_sysusersdir}/kea.conf
|
||||
%dir %attr(0750,kea,kea) %{_localstatedir}/log/kea
|
||||
|
||||
%files doc
|
||||
%dir %{_pkgdocdir}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user