From 71cab5af7cc062ee3fc4b5d5974a01293fecdfbff912a4ca1bbfbb253591c54b Mon Sep 17 00:00:00 2001 From: Matthias Gerstner Date: Wed, 17 May 2017 09:32:24 +0000 Subject: [PATCH] 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 --- tpm2-0-tss.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index 1f8fc24..2f7e398 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -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