diff --git a/cockpit.spec b/cockpit.spec index aa2236c..d3eee2f 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -288,10 +288,9 @@ mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}/html %pre ws %if 0%{?suse_version} %service_add_pre %{name}.service -%else +%endif getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws -%endif %post ws %if 0%{?suse_version}