spec: Add system user/group via scriptlet
See https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format. Fixes https://github.com/coreos/fedora-coreos-tracker/issues/457
This commit is contained in:
parent
e08407ebc2
commit
cfc1f079e5
|
@ -6,7 +6,7 @@
|
|||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.0.14
|
||||
Release: 1%{?dist}
|
||||
Release: 2
|
||||
Summary: Update agent for Fedora CoreOS
|
||||
|
||||
# Upstream license specification: Apache-2.0
|
||||
|
@ -62,6 +62,9 @@ License: ASL 2.0 and BSD and MIT and MPLv2.0 and zlib
|
|||
%{_datadir}/polkit-1/rules.d/zincati.rules
|
||||
%{_datadir}/polkit-1/actions/org.coreos.zincati.*
|
||||
|
||||
%pre
|
||||
%sysusers_create_compat dist/sysusers.d/50-zincati.conf
|
||||
|
||||
%post -n %{crate}
|
||||
%systemd_post zincati.service
|
||||
|
||||
|
@ -112,6 +115,10 @@ ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Dec 8 14:32:50 UTC 2020 Luca BRUNO <lucab@lucabruno.net> - 0.0.14-2
|
||||
- Add system user/group via scriptlet.
|
||||
Fixes https://github.com/coreos/fedora-coreos-tracker/issues/457
|
||||
|
||||
* Wed Nov 11 13:55:25 UTC 2020 Luca BRUNO <lucab@lucabruno.net> - 0.0.14-1
|
||||
- New upstream version
|
||||
https://github.com/coreos/zincati/releases/tag/v0.0.14
|
||||
|
|
Loading…
Reference in New Issue