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:
parent
9c3c7ac5c9
commit
71cab5af7c
@ -122,10 +122,10 @@ install -D -m 0644 contrib/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{udev_ru
|
|||||||
# entry seems not to be evaluated.
|
# entry seems not to be evaluated.
|
||||||
#
|
#
|
||||||
# so I guess we can share the account between the two packages for now.
|
# 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 || \
|
%_bindir/getent passwd tss >/dev/null || \
|
||||||
%{_sbindir}/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" \
|
%{_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
|
%service_add_pre resourcemgr.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Loading…
Reference in New Issue
Block a user