SHA256
1
0
forked from pool/syncthing
Alexei Sorokin 2015-08-09 23:07:01 +00:00 committed by Git OBS Bridge
parent 3a15f43879
commit 0740733df7

View File

@ -58,19 +58,19 @@ install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d
%post
%service_add_post %{name}@.service
%if 0%{?suse_version} > 1320
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
%systemd_user_post %{name}.service
%endif
%preun
%service_del_preun %{name}@.service
%if 0%{?suse_version} > 1320
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
%systemd_user_preun %{name}.service
%endif
%postun
%service_del_postun %{name}@.service
%if 0%{?suse_version} > 1320
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
%systemd_user_postun %{name}.service
%endif
@ -80,7 +80,7 @@ install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
%{_bindir}/%{name}
%{_unitdir}/%{name}@.service
%if 0%{?suse_version} > 1320
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
%{_userunitdir}/%{name}.service
%endif