From 9d3c314d331fa006d8353417cad24d215b067dc3 Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Thu, 14 Jan 2016 12:53:40 +0100 Subject: [PATCH] add KASP database initialization --- knot.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/knot.spec b/knot.spec index ba69c9b..296a123 100644 --- a/knot.spec +++ b/knot.spec @@ -21,7 +21,7 @@ BuildRequires: pkgconfig(liburcu) pkgconfig(gnutls) >= 3.0 pkgconfig(nettle) pkg BuildRequires: pkgconfig(libcap-ng) pkgconfig(libidn) pkgconfig(libsystemd-daemon) pkgconfig(libsystemd-journal) pkgconfig(libfstrm) pkgconfig(libprotobuf-c) BuildRequires: systemd -Requires(post): systemd +Requires(post): systemd %{_sbindir}/runuser Requires(preun): systemd Requires(postun): systemd @@ -122,6 +122,8 @@ exit 0 %post %systemd_post knot.service +# initialize/upgrade KASP database +%{_sbindir}/runuser -u knot -- %{_sbindir}/keymgr --dir %{_sharedstatedir}/%{name}/keys init %preun %systemd_preun knot.service