Rely on 'nogroup' provided by Provides

OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=11
This commit is contained in:
Oliver Kurz 2017-09-23 08:54:13 +00:00 committed by Git OBS Bridge
parent a53d6c2806
commit 49bcd2c968

View File

@ -123,7 +123,6 @@ done
%python_clone -a %{buildroot}%{_sysconfdir}/synapse/log_config.yaml %python_clone -a %{buildroot}%{_sysconfdir}/synapse/log_config.yaml
%pre %pre
getent group nogroup >/dev/null || /usr/sbin/groupadd -r nogroup
getent passwd synapse >/dev/null || \ getent passwd synapse >/dev/null || \
/usr/sbin/useradd -r -g nogroup -s /sbin/nologin -c 'Matrix Synapse' \ /usr/sbin/useradd -r -g nogroup -s /sbin/nologin -c 'Matrix Synapse' \
-d %{_localstatedir}/lib/synapse synapse -d %{_localstatedir}/lib/synapse synapse