add KASP database initialization
This commit is contained in:
parent
11641d8591
commit
9d3c314d33
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user