1
0
forked from cockpit/cockpit
Klaus Kämpf 2015-02-08 09:27:10 +00:00 committed by Git OBS Bridge
parent ee158b40d3
commit 4c04ebd2b7

View File

@ -297,14 +297,14 @@ mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}/html
%pre ws
%if 0%{?suse_version}
%service_add_pre %{name}.service
%service_add_pre %{name}.service %{name}.socket
%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
%post ws
%if 0%{?suse_version}
%service_add_post %{name}.service
%service_add_post %{name}.service %{name}.socket
%else
%systemd_post cockpit.socket
%endif
@ -313,14 +313,14 @@ test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
%preun ws
%if 0%{?suse_version}
%service_del_preun %{name}.service
%service_del_preun %{name}.service %{name}.socket
%else
%systemd_preun cockpit.socket
%endif
%postun ws
%if 0%{?suse_version}
%service_del_postun %{name}.service
%service_del_postun %{name}.service %{name}.socket
%else
%systemd_postun_with_restart cockpit.socket
%endif