SHA256
1
0
forked from pool/tpm2-0-tss

Don't ignore errors when adding tss user/group see sr#494834

OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=44
This commit is contained in:
Matthias Gerstner 2017-05-17 09:32:24 +00:00 committed by Git OBS Bridge
parent 9c3c7ac5c9
commit 71cab5af7c

View File

@ -122,10 +122,10 @@ install -D -m 0644 contrib/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{udev_ru
# entry seems not to be evaluated.
#
# so I guess we can share the account between the two packages for now.
%_bindir/getent group tss >/dev/null || %{_sbindir}/groupadd -g 98 tss || :
%_bindir/getent group tss >/dev/null || %{_sbindir}/groupadd -g 98 tss
%_bindir/getent passwd tss >/dev/null || \
%{_sbindir}/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" \
-d %{_localstatedir}/lib/tpm tss || :
-d %{_localstatedir}/lib/tpm tss
%service_add_pre resourcemgr.service
%post