SHA256
1
0
forked from jengelh/kea

Accepting request 883022 from home:Smar:branches:network:dhcp

By default Kea stores memfile lease files in /var/lib/kea. This ensures that this directory exists.

I noticed that this directory may get implicitly created by %pre script if kea user doesn’t already exist. If it *does* exist, that did not get created. This change ensures that that directory will exist. Also now it is known that this directory belongs to kea, instead of just having random directory around.

OBS-URL: https://build.opensuse.org/request/show/883022
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/kea?expand=0&rev=26
This commit is contained in:
Jan Engelhardt 2021-04-16 13:57:06 +00:00 committed by Git OBS Bridge
parent d9bf0271aa
commit 00197ff2dc
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 5 10:02:22 UTC 2021 - Samu Voutilainen <smar@smar.fi>
- Own directory /var/lib/kea, as that is used as default for
memfile lease store.
-------------------------------------------------------------------
Tue Nov 10 08:04:38 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package kea
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -445,6 +445,7 @@ systemd-tmpfiles --create kea.conf || :
%_sbindir/perfdhcp
%_datadir/kea/
%_unitdir/*.service
%dir %_localstatedir/lib/kea
%_prefix/lib/tmpfiles.d/
%attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/